blob: 7e028278ca7507a735b90f8dc5124353aca00027 [file] [log] [blame]
Alexander Afanasyevc23d1942014-05-09 11:04:29 -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 Afanasyev8686d2e2014-12-18 23:26:41 -080013CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS)
Alexander Afanasyev427c7552018-10-16 16:43:38 +000014CXXFLAGS += -std=c++14
Alexander Afanasyev0f2bf102017-01-26 05:27:27 +000015LIBDIR := /usr/lib/$(shell dpkg-architecture -qDEB_HOST_MULTIARCH)
Alexander Afanasyevc23d1942014-05-09 11:04:29 -070016
17%:
18 dh $@ --parallel
19
20override_dh_auto_configure:
Alexander Afanasyevac9726c2017-01-30 19:05:38 +000021 CXXFLAGS="$(CXXFLAGS)" LINKFLAGS="$(LDFLAGS)" ./waf configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var
Alexander Afanasyevc23d1942014-05-09 11:04:29 -070022
23override_dh_auto_build:
Alexander Afanasyev8686d2e2014-12-18 23:26:41 -080024 ./waf build
Alexander Afanasyevc23d1942014-05-09 11:04:29 -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
35 rm -rf .waf-1*
Alexander Afanasyev8686d2e2014-12-18 23:26:41 -080036 rm -rf .waf3-1*
Alexander Afanasyevc23d1942014-05-09 11:04:29 -070037 rm -f .waf-tools/*.pyc
38
39override_dh_auto_test: