File: rules

package info (click to toggle)
sunclock 3.57-15
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 6,620 kB
  • sloc: ansic: 14,419; makefile: 815; perl: 111; sh: 33
file content (61 lines) | stat: -rwxr-xr-x 1,764 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
#!/usr/bin/make -f
# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1
#export DH_OPTIONS=-v

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

INSTDIR=`pwd`/debian/sunclock
INSTMAPDIR=`pwd`/debian/sunclock-maps

%:
	dh  $@

override_dh_auto_configure:
	xmkmf
	sed -i 's/-D_BSD_SOURCE -D_SVID_SOURCE/-D_DEFAULT_SOURCE/g' Makefile

override_dh_auto_build-arch:
	$(MAKE) CDEBUGFLAGS="$(shell dpkg-buildflags --get CFLAGS)" \
		EXTRA_LDOPTIONS="$(shell dpkg-buildflags --get LDFLAGS)" \
		PROJECT_DEFINES="$(shell dpkg-buildflags --get CPPFLAGS)" \
		XAPPLOADDIR=/etc/X11/app-defaults SELINUX_LIBS= \
		DOCDIR=/usr/share/doc/sunclock

override_dh_auto_build-indep:
# 	nothing to build on indep package.

override_dh_clean:
	[ ! -f Makefile ] || $(MAKE) clean
	rm -f Makefile Makefile.bak
	dh_clean


override_dh_auto_install-arch:
	$(MAKE) install install.man DESTDIR=$(INSTDIR)/usr \
		BINDIR=/bin MANDIR=/share/man/man1 MANSUFFIX=1 \
		DOCDIR=/usr/share/doc/sunclock

# 	little hack to have Sunclockrc in /etc:
	mv $(INSTDIR)/usr/share/sunclock/Sunclockrc $(INSTDIR)/etc
	(cd $(INSTDIR)/usr/share/sunclock; ln -s /etc/Sunclockrc)

	for x in wm_icons/*.xpm; do \
		install -m644 $$x $(INSTDIR)/usr/share/pixmaps/; \
	done
	for x in 16x16 22x22 32x32 48x48 64x64; do \
		convert wm_icons/sunclock2.xpm -geometry $$x \
		   $(INSTDIR)/usr/share/icons/hicolor/$$x/apps/sunclock.png; \
	done
	install -m644 debian/sunclock.desktop \
		$(INSTDIR)/usr/share/applications/sunclock.desktop

override_dh_auto_install-indep:
	install -m644 vmf/* $(INSTMAPDIR)/usr/share/sunclock/earthmaps/vmf/
	gzip -n9 $(INSTMAPDIR)/usr/share/sunclock/earthmaps/vmf/*.vmf

override_dh_installdocs-arch:
	dh_installdocs

override_dh_installchangelogs:
	dh_installchangelogs CHANGES