blob: b5e24b65ba3e4ebd4c9ab75351108b4debe51466 [file] [log] [blame]
Alexander Afanasyev6397d532014-05-07 19:25:04 -07001#!/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
12LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS)
Alexander Afanasyev3859a9c2014-11-09 16:51:45 -080013CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
14CXXFLAGS += -std=c++11
Alexander Afanasyev507b4602017-01-26 04:00:32 +000015LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
Alexander Afanasyev6397d532014-05-07 19:25:04 -070016
17%:
18 dh $@ --parallel
19
20override_dh_auto_configure:
Alexander Afanasyev507b4602017-01-26 04:00:32 +000021 ./waf configure --prefix=/usr --sysconfdir=/etc --libdir="$(LIBDIR)" --localstatedir=/var --disable-static --enable-shared --boost-libs="$(LIBDIR)"
Alexander Afanasyev6397d532014-05-07 19:25:04 -070022
23override_dh_auto_build:
Alexander Afanasyev0e5319c2014-06-19 12:41:24 -070024 ./waf build
Alexander Afanasyev6397d532014-05-07 19:25:04 -070025
26override_dh_auto_install:
27 ./waf install --destdir=debian/tmp
28
29override_dh_auto_clean:
30 ./waf distclean
31
32override_dh_clean:
33 dh_clean
34 ./waf distclean
Alexander Afanasyev6397d532014-05-07 19:25:04 -070035 rm -rf .waf-1*
36 rm -f .waf-tools/*.pyc
37 rm -f docs/*.pyc
38
39override_dh_auto_test:
Alexander Afanasyev71bdae72016-02-27 01:59:19 +000040
41.PHONY: override_dh_strip
42override_dh_strip:
43 dh_strip --dbg-package=ndn-cxx-dbg