File: rules

package info (click to toggle)
terminus 3.6.0-1.1
  • links: PTS, VCS
  • area: main
  • in suites: forky
  • size: 1,156 kB
  • sloc: xml: 278; javascript: 236; sh: 22; makefile: 21
file content (37 lines) | stat: -rwxr-xr-x 1,101 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

include /usr/share/dpkg/pkg-info.mk
export DEB_BUILD_MAINT_OPTIONS = hardening=+all
VALAFLAGS:=$(foreach w,$(CPPFLAGS) $(CFLAGS) $(LDFLAGS),-X $(w))

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- -DGSETTINGS_COMPILE=OFF -DICON_UPDATE=OFF

execute_after_dh_auto_install:
	@echo "Remove inappropriate file installed by upstream build scripts."
	-rm --verbose debian/terminus/usr/share/terminus/CMakeLists.txt

override_dh_installchangelogs:
	dh_installchangelogs HISTORY.md

# override_dh_installman: debian/terminus.1
# 	dh_installman

override_dh_dwz:
	@echo "skipping dh_dwz which gets a mysterious error:"
	@echo "dh_dwz: dwz -q -- debian/terminus/usr/bin/terminus returned exit code 1"

# Automatically-generated man page.
# Do this manually:
#  rm debian/terminus.1
#  debian/rules build
#  debian/rules TERMINUS=obj-*/src/terminus debian/terminus.1
TERMINUS=terminus
debian/terminus.1:
	help2man --no-info \
	 --version-string="$(DEB_VERSION)" \
	 --name="$(shell egrep '^Description: ' debian/control | head -1 | sed 's/Description: //')" \
	 $(TERMINUS) > $@