File: rules

package info (click to toggle)
aumix 2.9.1-3
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 2,232 kB
  • ctags: 578
  • sloc: sh: 4,682; ansic: 2,582; makefile: 60
file content (52 lines) | stat: -rwxr-xr-x 1,429 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
#!/usr/bin/make -f

# Prevent needless linking / dependencies
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-need

%:
	dh $@ --with autoreconf

# directories
builddir := build

override_dh_auto_configure:
	[ -d "$(builddir)/nogtk" ] || mkdir -p -m 0755 $(builddir)/nogtk
	[ -d "$(builddir)/gtk" ] || mkdir -p -m 0755 $(builddir)/gtk

	dh_auto_configure -B$(builddir)/gtk
	dh_auto_configure -B$(builddir)/nogtk -- --without-gtk

override_dh_auto_build:
	dh_auto_build -B$(builddir)/gtk
	dh_auto_build -B$(builddir)/nogtk

override_dh_auto_install:
	dh_auto_install -B $(builddir)/gtk --destdir debian/tmp/aumix-gtk \
		-- pkgdatadir=\$${datadir}/aumix-gtk/

	dh_auto_install -B $(builddir)/nogtk --destdir debian/tmp/aumix \
		-- pkgdatadir=\$${datadir}/aumix/

	sh ./debian/make-README.sh aumix > debian/aumix.README.Debian
	sh ./debian/make-README.sh aumix-gtk > debian/aumix-gtk.README.Debian

override_dh_clean:
	dh_clean

	rm -f po/*gmo
	rm -rf $(builddir)

override_dh_installinit:
	dh_installinit -paumix-common --no-restart-on-upgrade --no-start \
		--name=aumix -u "start 21 2 3 4 5 . stop 19 0 1 6 ."

override_dh_installdocs:
	# Include author list in copyright file
	sed -e '/@AUMIX_AUTHORS@/r AUTHORS' \
		-e '/@AUMIX_AUTHORS@/d' debian/copyright.in.in \
		| sed '/^.Aumix: aumix\/AUTHORS/d' > debian/copyright.in

	# Convert to UTF-8
	iconv -f ISO-8859-1 -t UTF-8 debian/copyright.in > debian/copyright

	dh_installdocs