Alexander Afanasyev | 6397d53 | 2014-05-07 19:25:04 -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 | 3859a9c | 2014-11-09 16:51:45 -0800 | [diff] [blame] | 13 | CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) |
Alexander Afanasyev | 8fed69b | 2018-10-16 15:21:39 +0000 | [diff] [blame] | 14 | CXXFLAGS += -std=c++14 |
Alexander Afanasyev | 507b460 | 2017-01-26 04:00:32 +0000 | [diff] [blame] | 15 | LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH) |
Alexander Afanasyev | 6397d53 | 2014-05-07 19:25:04 -0700 | [diff] [blame] | 16 | |
| 17 | %: |
| 18 | dh $@ --parallel |
| 19 | |
| 20 | override_dh_auto_configure: |
Alexander Afanasyev | 988f9c4 | 2017-06-12 20:35:47 +0000 | [diff] [blame] | 21 | ./waf configure --without-pch --prefix=/usr --sysconfdir=/etc --libdir="$(LIBDIR)" --localstatedir=/var --disable-static --enable-shared --boost-libs="$(LIBDIR)" |
Alexander Afanasyev | 6397d53 | 2014-05-07 19:25:04 -0700 | [diff] [blame] | 22 | |
| 23 | override_dh_auto_build: |
Alexander Afanasyev | 86b99c2 | 2017-11-09 21:42:25 +0000 | [diff] [blame] | 24 | ./waf build |
Alexander Afanasyev | 6397d53 | 2014-05-07 19:25:04 -0700 | [diff] [blame] | 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 | 6397d53 | 2014-05-07 19:25:04 -0700 | [diff] [blame] | 35 | rm -rf .waf-1* |
| 36 | rm -f .waf-tools/*.pyc |
| 37 | rm -f docs/*.pyc |
Alex Afanasyev | 04ba67c | 2020-11-22 22:02:41 +0000 | [diff] [blame^] | 38 | rm -rf .waf-tools/__pycache__ |
| 39 | rm -rf docs/__pycache__ |
Alexander Afanasyev | 6397d53 | 2014-05-07 19:25:04 -0700 | [diff] [blame] | 40 | |
| 41 | override_dh_auto_test: |
Alexander Afanasyev | 71bdae7 | 2016-02-27 01:59:19 +0000 | [diff] [blame] | 42 | |
| 43 | .PHONY: override_dh_strip |
| 44 | override_dh_strip: |
Alexander Afanasyev | 0b221c4 | 2018-02-22 16:12:54 +0000 | [diff] [blame] | 45 | dh_strip --dbg-package=libndn-cxx-dbg |