File: rules

package info (click to toggle)
batmon.app 0.9-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 252 kB
  • sloc: objc: 1,613; makefile: 21
file content (30 lines) | stat: -rwxr-xr-x 890 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

SHELL := /bin/bash

include /usr/share/GNUstep/debian/config.mk
d_app := $(CURDIR)/debian/batmon.app
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed

%:
	dh $@

override_dh_auto_build:
	dh_auto_build -- $(optim) messages=yes \
	  $(shell dpkg-buildflags --export=cmdline)

override_dh_link:
	dh_installdirs usr/share/GNUstep
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/batmon.app/Resources/{LICENSE,README}
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/batmon.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/batmon.app/Resources \
	  $(d_app)/usr/share/GNUstep/batmon.app
	dh_link usr/share/GNUstep/batmon.app \
	  $(GNUSTEP_SYSTEM_APPS)/batmon.app/Resources

override_dh_fixperms:
	dh_fixperms
	chmod -x $(d_app)/usr/share/GNUstep/batmon.app/*.tif