1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67
|
#!/usr/bin/make -f
# Made with the aid of debhelper by by Joey Hess,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
#
# This is free software; see the GNU General Public Licence
# version 2 or later for copying conditions. There is NO warranty.
#
# Modified to suit yodl-2.00 by Frank B. Brokken <f.b.brokken@rc.rug.nl>
SHELL = /bin/sh
export ICMAKE_CPPSTD = --std=c++26
export DEB_BUILD_HARDENING=1
# For reproducible builds of documentation.
# Also see https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=950603
export FORCE_SOURCE_DATE=1
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
export CFLAGS = $(shell dpkg-buildflags --get CFLAGS)
export CFLAGS += -Wall -D_FORTIFY_SOURCE=2
export CXXFLAGS = $(shell dpkg-buildflags --get CXXFLAGS)
export CXXFLAGS += ${ICMAKE_CPPSTD} -Wall -D_FORTIFY_SOURCE=2
export CXX = g++
export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS)
export LDFLAGS += -Wl,-z,now
# unexport NAME ?? What's this? /FBB
%:
dh $@
override_dh_clean:
./build clean
dh_clean
override_dh_auto_build-arch:
# Compile the package:
./build programs
./build macros
./build man
# dh_auto_build
override_dh_auto_build-indep: override_dh_auto_build-arch
./build manual
dh_auto_build -i
override_dh_auto_install-arch:
# dh_auto_install
# Install the package below debian/yodl:
./build install programs debian/yodl
./build install macros debian/yodl
./build install mandeb debian/yodl
./build install docs debian/yodl
override_dh_auto_install-indep:
./build install manual debian/yodl-doc
#print-version:
# @@echo "Debian version: $(DEBVERSION)"
# @@echo "Upstream version: $(UPVERSION)"
|