blob: 2123dde72e76986db5e9807ea618dfeb3311501b [file] [log] [blame]
Junxiao Shibdc817e2020-08-08 17:16:34 -06001#!/usr/bin/make -f
2# See debhelper(7) (uncomment to enable)
3# output every command that modifies files on the build system.
4#export DH_VERBOSE = 1
5
6
7LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
8CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
9CXXFLAGS += -std=c++14
10LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
11
12%:
13 dh $@ --parallel
14
15override_dh_auto_configure:
16 ./waf configure --prefix=/usr --sysconfdir=/etc --libdir="$(LIBDIR)" --localstatedir=/var --boost-libs="$(LIBDIR)"
17
18override_dh_auto_build:
19 ./waf build
20
21override_dh_auto_install:
22 ./waf install --destdir=debian/tmp
23
24override_dh_auto_clean:
25 ./waf distclean
26
27override_dh_clean:
28 dh_clean
29 ./waf distclean
30 rm -rf .waf-1*
31 rm -f .waf-tools/*.pyc
32 rm -f docs/*.pyc
Alex Afanasyev605d06c2020-11-23 01:42:48 +000033 rm -rf .waf-tools/__pycache__
34 rm -rf docs/__pycache__
Junxiao Shibdc817e2020-08-08 17:16:34 -060035
36override_dh_auto_test:
37
38.PHONY: override_dh_strip
39override_dh_strip:
40 dh_strip --dbg-package=libndn-nac-dbg
41