Ashlesh Gawande | 64ad730 | 2019-01-14 19:07:51 -0600 | [diff] [blame] | 1 | #!/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 | |
| 7 | LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
| 8 | CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) |
| 9 | CXXFLAGS += -std=c++14 |
| 10 | LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
| 11 | |
| 12 | %: |
| 13 | dh $@ --parallel |
| 14 | |
| 15 | override_dh_auto_configure: |
| 16 | ./waf configure --with-examples --prefix=/usr --sysconfdir=/etc --libdir="$(LIBDIR)" --localstatedir=/var --boost-libs="$(LIBDIR)" |
| 17 | |
| 18 | override_dh_auto_build: |
| 19 | ./waf build |
| 20 | |
| 21 | override_dh_auto_install: |
| 22 | ./waf install --destdir=debian/tmp |
| 23 | |
| 24 | override_dh_auto_clean: |
| 25 | ./waf distclean |
| 26 | |
| 27 | override_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 Afanasyev | 05aa8c2 | 2020-11-22 22:04:16 +0000 | [diff] [blame] | 33 | rm -rf .waf-tools/__pycache__ |
| 34 | rm -rf docs/__pycache__ |
Ashlesh Gawande | 64ad730 | 2019-01-14 19:07:51 -0600 | [diff] [blame] | 35 | |
| 36 | override_dh_auto_test: |
| 37 | |
| 38 | .PHONY: override_dh_strip |
| 39 | override_dh_strip: |
| 40 | dh_strip --dbg-package=libpsync-dbg |
| 41 | |