File: rules

package info (click to toggle)
yodl 4.04.00-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 4,720 kB
  • sloc: ansic: 7,803; perl: 683; cpp: 570; sh: 411; xml: 190; makefile: 164
file content (67 lines) | stat: -rwxr-xr-x 1,733 bytes parent folder | download
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)"