File: rules

package info (click to toggle)
gridlock.app 1.10-4
  • links: PTS, VCS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 2,260 kB
  • ctags: 201
  • sloc: objc: 10,334; ansic: 669; makefile: 19; sh: 9
file content (27 lines) | stat: -rwxr-xr-x 781 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--no-undefined -Wl,--as-needed
d_app = $(CURDIR)/debian/gridlock.app

ifneq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
optim := debug=yes
endif

%:
	dh $@

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

override_dh_link:
	dh_gnustep
	mv $(d_app)/usr/bin/Gridlock $(d_app)/usr/games
	$(RM) -r $(d_app)/usr/bin
	rm $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/Gridlock.app/Resources \
	  $(d_app)/usr/share/GNUstep/Gridlock.app
	dh_link usr/share/GNUstep/Gridlock.app \
	  $(GNUSTEP_SYSTEM_APPS)/Gridlock.app/Resources