File: rules

package info (click to toggle)
edenmath.app 1.1.1a-8
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster
  • size: 296 kB
  • sloc: objc: 1,496; makefile: 18
file content (26 lines) | stat: -rwxr-xr-x 777 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

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

%:
	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)/*.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/EdenMath.app/Resources \
	  $(d_app)/usr/share/GNUstep/EdenMath.app
	dh_link usr/share/GNUstep/EdenMath.app \
	  $(GNUSTEP_SYSTEM_APPS)/EdenMath.app/Resources

override_dh_compress:
# Neither Ink nor TextEdit can open compressed files.
	dh_compress --exclude=.rtf