Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 1 | #!/usr/bin/make -f |
| 2 | # -*- makefile -*- |
| 3 | # Sample debian/rules that uses debhelper. |
| 4 | # This file was originally written by Joey Hess and Craig Small. |
| 5 | # As a special exception, when this file is copied by dh-make into a |
| 6 | # dh-make output file, you may use that output file without restriction. |
| 7 | # This special exception was added by Craig Small in version 0.37 of dh-make. |
| 8 | |
| 9 | # Uncomment this to turn on verbose mode. |
| 10 | # export DH_VERBOSE=1 |
| 11 | |
| 12 | LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) |
Alexander Afanasyev | f1889a7 | 2014-12-18 23:38:12 -0800 | [diff] [blame] | 13 | CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) |
| 14 | CXXFLAGS += -std=c++11 |
Alexander Afanasyev | bcda63a | 2017-01-26 05:24:28 +0000 | [diff] [blame^] | 15 | LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 16 | |
| 17 | %: |
Eric Newberry | 8149f77 | 2015-06-09 14:12:19 -0700 | [diff] [blame] | 18 | dh $@ --parallel --with=systemd |
Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 19 | |
| 20 | override_dh_auto_configure: |
Alexander Afanasyev | bcda63a | 2017-01-26 05:24:28 +0000 | [diff] [blame^] | 21 | CXXFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" ./waf configure --prefix=/usr --boost-libs="$(LIBDIR)" |
Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 22 | |
| 23 | override_dh_auto_build: |
| 24 | ./waf build |
| 25 | |
| 26 | override_dh_auto_install: |
| 27 | ./waf install --destdir=debian/tmp |
| 28 | |
| 29 | override_dh_auto_clean: |
| 30 | ./waf distclean |
| 31 | |
| 32 | override_dh_clean: |
| 33 | dh_clean |
| 34 | ./waf distclean |
Alexander Afanasyev | 3441206 | 2014-08-25 12:35:54 -0700 | [diff] [blame] | 35 | rm -f VERSION |
Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 36 | rm -rf .waf-1* |
Alexander Afanasyev | f1889a7 | 2014-12-18 23:38:12 -0800 | [diff] [blame] | 37 | rm -rf .waf3-1* |
Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 38 | rm -f .waf-tools/*.pyc |
Alexander Afanasyev | 3441206 | 2014-08-25 12:35:54 -0700 | [diff] [blame] | 39 | rm -f docs/*.pyc |
Syed Obaid | acc28bc | 2014-06-24 17:13:33 -0700 | [diff] [blame] | 40 | |
| 41 | override_dh_auto_test: |
Eric Newberry | 8149f77 | 2015-06-09 14:12:19 -0700 | [diff] [blame] | 42 | |
| 43 | override_dh_systemd_enable: |
| 44 | dh_systemd_enable --no-enable |
| 45 | |
| 46 | override_dh_systemd_start: |
| 47 | dh_systemd_start --no-start |