File: rules

package info (click to toggle)
addresses-for-gnustep 0.4.8-2
  • links: PTS
  • area: main
  • in suites: stretch
  • size: 1,988 kB
  • sloc: objc: 11,308; makefile: 42
file content (81 lines) | stat: -rwxr-xr-x 2,094 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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
#!/usr/bin/make -f
# See debhelper(7) (uncomment to enable)
# output every command that modifies files on the build system.
#export DH_VERBOSE = 1

# see EXAMPLES in dpkg-buildflags(1) and read /usr/share/dpkg/*
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/default.mk
include /usr/share/GNUstep/debian/config.mk

# see FEATURE AREAS in dpkg-buildflags(1)
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all

# see ENVIRONMENT in dpkg-buildflags(1)
# package maintainers to append CFLAGS
#export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
# package maintainers to append LDFLAGS
#export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed

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


# main packaging script based on dh7 syntax
%:
	dh $@ 

override_dh_auto_clean:
	$(MAKE) -C Goodies distclean
	dh_auto_clean

override_dh_auto_build:
	
	$(MAKE) $(optim) \
	  messages=yes \
	  $(shell dpkg-buildflags --export=cmdline)
	
	$(MAKE) -C Goodies $(optim) \
	  messages=yes \
	  $(shell dpkg-buildflags --export=cmdline) \
	  disable-vcfviewer=yes \
	  disable-ldapaddressbook=yes

override_dh_auto_install:	
	$(MAKE) -C Goodies install \
		DESTDIR=$(CURDIR)/debian/tmp \
		disable-vcfviewer=yes \
		disable-ldapaddressbook=yes
	dh_auto_install

override_dh_fixperms:
	# Fix Add.tiff files permissions
	for file in `find debian -name "Add.tiff"`; do \
	    chmod -v 644 $$file ; done
	
	# Fix .strings files permissions
	for file in `find debian -name "*.strings"`; do \
	    chmod -v 644 $$file ; done
	
	# Fix data.classes files permissions
	for file in `find debian -name "data.classes"`; do \
	    chmod -v 644 $$file ; done
	
	# Fix objects.gorm files permissions
	for file in `find debian -name "objects.gorm"`; do \
	    chmod -v 644 $$file ; done

	# Fix ISOCountryCodes.dict files permissions
	for file in `find debian -name "ISOCountryCodes.dict"`; do \
	    chmod -v 644 $$file ; done
	
	# Fix .desktop files permissions
	for file in `find debian -name "*.desktop"`; do \
	    chmod -v 644 $$file ; done
	
	dh_fixperms

override_dh_makeshlibs:
	dh_makeshlibs -n