File: rules

package info (click to toggle)
helpviewer.app 0.3-8
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, jessie, jessie-kfreebsd, stretch
  • size: 5,052 kB
  • ctags: 51
  • sloc: objc: 2,386; makefile: 22
file content (34 lines) | stat: -rwxr-xr-x 1,068 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
33
34
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

include /usr/share/GNUstep/debian/config.mk
d_app := $(CURDIR)/debian/helpviewer.app

# Needed with gnustep-base >= 1.24.6 as the source contains non-UTF-8
# string literals which have to be converted to UTF-8.  Fixes #754848.
export DEB_OBJCFLAGS_MAINT_APPEND := -finput-charset=ISO-8859-1
export DEB_LDFLAGS_MAINT_APPEND := -Wl,--no-undefined -Wl,--as-needed

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

%:
	dh $@

override_dh_auto_build:
	$(MAKE) $(optim) messages=yes $(shell dpkg-buildflags --export=cmdline)
	convert Icons/HelpViewer.tiff -resize 32x32 HelpViewer.xpm

override_dh_clean:
	dh_clean HelpViewer.xpm

override_dh_link:
	gsdh_gnustep
	dh_installdirs usr/share/GNUstep
	$(RM) $(d_app)$(GNUSTEP_SYSTEM_APPS)/*.app/Resources/*.desktop
	mv $(d_app)$(GNUSTEP_SYSTEM_APPS)/HelpViewer.app/Resources \
	  $(d_app)/usr/share/GNUstep/HelpViewer.app
	dh_link /usr/share/GNUstep/HelpViewer.app \
	  $(GNUSTEP_SYSTEM_APPS)/HelpViewer.app/Resources