File: rules

package info (click to toggle)
topal 84-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,084 kB
  • sloc: ada: 11,213; ansic: 783; sh: 174; makefile: 145
file content (32 lines) | stat: -rwxr-xr-x 961 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
#!/usr/bin/make -f
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

DEB_BUILD_MAINT_OPTIONS := hardening=+all
DPKG_EXPORT_BUILDFLAGS := 1
include /usr/share/dpkg/buildflags.mk
include /usr/share/ada/packaging.mk

# Compile Ada and C with the same compiler.
export CC := gcc-$(DEB_GNAT_VERSION)

# Upstream Makefile insists on rebuilding everything everytime.
# SOURCE_DATE_EPOCH (set by debhelper) and the -m gnatmake option may
# avoid some unneeded recompilations.
export gnatmake_options := $(GNATMAKEFLAGS) -m

# Tell Make not to strip the executables (dh_strip will).
export strip := true

%:
	dh  $@

execute_after_dh_auto_install:
	# The verbatim GPL would duplicate /usr/share/common-licenses.
	rm -f debian/topal/usr/share/doc/topal/COPYING
	# Let dh_installchangelogs handle an html changelog.
	rm -f debian/topal/usr/share/doc/topal/Changelog.html

.PHONY: override_dh_installchangelogs
override_dh_installchangelogs:
	dh_installchangelogs Changelog.html