File: rules

package info (click to toggle)
aumix 2-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 844 kB
  • ctags: 562
  • sloc: ansic: 4,336; sh: 380; makefile: 196; sed: 93
file content (121 lines) | stat: -rwxr-xr-x 4,321 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
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# This version is for a hypothetical package that builds an
# architecture-dependant package, as well as an architecture-independant
# package.
# Modified for aumix by Tom Lees, 1998.

# Uncomment this to turn on verbose mode. 
#export DH_VERBOSE=1

debbasedir=$(shell echo `pwd`/debian)

build: build-stamp
build-stamp: configured
	dh_testdir
	$(MAKE) -C nonalsa CFLAGS="-O2 -g -Wall -DDATADIRNAME=\\\"/usr/share/aumix\\\""
	#NOALSA# $(MAKE) -C    alsa CFLAGS="-O2 -g -Wall -DDATADIRNAME=\\\"/usr/share/aumix\\\""
	touch build-stamp

configured:
	automake --gnu
	autoconf
	# --datadir is only used for "make install", not the compiled value :-(
	mkdir nonalsa && cd nonalsa && ../configure --prefix=/usr --mandir=$(debbasedir)/tmp/usr/share/man --without-alsa
	#NOALSA# mkdir    alsa && cd    alsa && ../configure --prefix=/usr --mandir=$(debbasedir)/aumix-alsa/usr/share/man
	touch configured

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp

	@if [ ! -x /usr/bin/msgfmt ]; then echo 'gettext not installed!'; exit 1; fi
	#NOALSA# @if [ ! -f /usr/include/linux/asound.h ]; then echo 'alsa-base not installed!'; exit 1; fi
	-$(MAKE) -C nonalsa maintainer-clean
	#NOALSA# -$(MAKE) -C    alsa distclean
	-rm -fr nonalsa alsa
	-rm -f po/*.gmo
	-rm -fr debian/files debian/substvars debian/tmp debian/aumix-alsa
	# minimize diff, these are always rebuilt?!
	-rm -f configure
	-rm -f Makefile.in data/Makefile.in doc/Makefile.in src/Makefile.in
	-rm -f po/aumix.pot

	dh_clean configured

# Build architecture-independent files here.
binary-indep: build

unexport

# Build architecture-dependent files here.
binary-arch: build
#	dh_testversion
	dh_testdir -a
	dh_testroot -a
	dh_clean -a -k
	dh_installdirs -a

	# Add here commands to install the files into debian/tmp
	$(MAKE) -C nonalsa prefix=$(debbasedir)/tmp/usr install

	# move the icons
	mv $(debbasedir)/tmp/usr/share/aumix/aumix*.xpm $(debbasedir)/tmp/usr/X11R6/include/X11/pixmaps/.
	# move the wrapper script and add the manpage for it
	mv $(debbasedir)/tmp/usr/bin/xaumix $(debbasedir)/tmp/usr/X11R6/bin/.
	mv $(debbasedir)/tmp/usr/share/man/man1/xaumix.1 $(debbasedir)/tmp/usr/X11R6/man/man1/xaumix.1x
	dh_movefiles -paumix
	dh_installdocs -paumix AUTHORS BUGS NEWS README TODO
	dh_installexamples -paumix
	dh_installmenu -paumix
#	dh_installinit -paumix
	dh_installcron -paumix
	dh_installmanpages -paumix
#	dh_undocumented
	dh_installchangelogs -paumix ChangeLog
	dh_strip -paumix
	dh_compress -paumix
	dh_fixperms -paumix
	dh_suidregister -paumix
	dh_installdeb -paumix
	dh_shlibdeps -paumix
	dh_gencontrol -paumix
#	dh_makeshlibs -paumix
	dh_md5sums -paumix
	dh_builddeb -paumix

	#NOALSA# dh_installdirs -paumix-alsa
	#NOALSA# $(MAKE) -C alsa prefix=$(debbasedir)/aumix-alsa/usr install
	#NOALSA# # move the icon
	#NOALSA# mv $(debbasedir)/aumix-alsa/usr/share/aumix/aumix.xpm $(debbasedir)/aumix-alsa/usr/X11R6/include/X11/pixmaps/.
	#NOALSA# # add the extra wrapper script and the small icon
	#NOALSA# install -m 555 $(debbasedir)/aumix-X-wrapper   $(debbasedir)/aumix-alsa/usr/X11R6/bin
	#NOALSA# install -m 444 $(debbasedir)/aumix-X-wrapper.1 $(debbasedir)/aumix-alsa/usr/X11R6/man/man1
	#NOALSA# install -m 444 $(debbasedir)/aumix-mini.xpm    $(debbasedir)/aumix-alsa/usr/X11R6/include/X11/pixmaps/.
	
	#NOALSA# dh_movefiles -paumix-alsa
	#NOALSA# dh_installdocs -paumix-alsa AUTHORS BUGS NEWS README TODO
	#NOALSA# dh_installexamples -paumix-alsa
	#NOALSA# dh_installmenu -paumix-alsa
#	dh_installinit -paumix-alsa
	#NOALSA# dh_installcron -paumix-alsa
	#NOALSA# dh_installmanpages -paumix-alsa
#	dh_undocumented
	#NOALSA# dh_installchangelogs -paumix-alsa ChangeLog
	#NOALSA# dh_strip -paumix-alsa
	#NOALSA# dh_compress -paumix-alsa
	#NOALSA# dh_fixperms -paumix-alsa
	#NOALSA# dh_suidregister -paumix-alsa
	#NOALSA# dh_installdeb -paumix-alsa
	#NOALSA# dh_shlibdeps -paumix-alsa
	#NOALSA# dh_gencontrol -paumix-alsa
#	dh_makeshlibs -paumix-alsa
	#NOALSA# dh_md5sums -paumix-alsa
	#NOALSA# dh_builddeb -paumix-alsa

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary