Debian Codegraph @

debian/rules

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