File: rules

package info (click to toggle)
yodl 4.02.01-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 4,700 kB
  • sloc: ansic: 7,807; perl: 683; cpp: 534; sh: 411; xml: 190; makefile: 158
file content (60 lines) | stat: -rwxr-xr-x 1,501 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
#!/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 DEB_BUILD_HARDENING=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 += --std=c++17 -Wall -D_FORTIFY_SOURCE=2

export CXX = g++

export LDFLAGS = $(shell dpkg-buildflags --get LDFLAGS) -Wl,-z,now

unexport NAME

%:
	dh $@

override_dh_auto_clean:
	./build clean
	dh_auto_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 man         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)"