blob: 48aa9000a46dfc7518371975f8c3dd6a4ae58775 [file] [log] [blame]
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -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 Afanasyev1bfc7782014-11-09 17:24:26 -080013CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
Alexander Afanasyev82d638b2017-01-26 05:17:47 +000014LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070015
16%:
Eric Newberry9ab4a662015-05-28 11:36:41 -070017 dh $@ --parallel --with=systemd
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070018
19override_dh_auto_configure:
Alexander Afanasyev090287d2017-06-12 23:04:34 +000020 CXXFLAGS="$(CXXFLAGS)" ./waf configure --without-pch --prefix=/usr --sysconfdir=/etc --localstatedir=/var --boost-libs="$(LIBDIR)"
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070021
22override_dh_auto_build:
Alexander Afanasyev2c3726b2014-05-26 06:29:36 -070023 ./waf build
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070024
25override_dh_auto_install:
26 ./waf install --destdir=debian/tmp
27
28override_dh_auto_clean:
29 ./waf distclean
30
31override_dh_clean:
32 dh_clean
33 ./waf distclean
34 rm -rf .waf-1*
35 rm -f .waf-tools/*.pyc
36 rm -f docs/*.pyc
Alex Afanasyev3f7d3832020-11-22 22:02:56 +000037 rm -rf .waf-tools/__pycache__
38 rm -rf docs/__pycache__
Alexander Afanasyev469cbcd2014-05-08 01:25:11 -070039
40override_dh_auto_test:
41
Eric Newberry9ab4a662015-05-28 11:36:41 -070042override_dh_systemd_enable:
43 dh_systemd_enable -pnfd
44 dh_systemd_enable -pnfd-status-http-server
45 dh_systemd_enable -pndn-autoconfig-server --no-enable
Alexander Afanasyev3a902892015-12-30 22:42:20 +000046 dh_systemd_enable -pndn-autoconfig-client --no-enable
Eric Newberry9ab4a662015-05-28 11:36:41 -070047 dh_systemd_enable -pnfd-autoreg --no-enable
48
49override_dh_systemd_start:
50 dh_systemd_start -pnfd
51 dh_systemd_start -pnfd-status-http-server
52 dh_systemd_start -pndn-autoconfig-server --no-start
Alexander Afanasyev3a902892015-12-30 22:42:20 +000053 dh_systemd_start -pndn-autoconfig-client --no-start
Eric Newberry9ab4a662015-05-28 11:36:41 -070054 dh_systemd_start -pnfd-autoreg --no-start
Alexander Afanasyeve70537f2016-02-27 00:39:40 +000055
56.PHONY: override_dh_strip
57override_dh_strip:
58 dh_strip --dbg-package=nfd-dbg