File: rules

package info (click to toggle)
libnjb 2.2.5-4.2
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 2,528 kB
  • ctags: 1,071
  • sloc: ansic: 11,860; sh: 8,611; makefile: 139
file content (56 lines) | stat: -rwxr-xr-x 1,092 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
#!/usr/bin/make -f

build: build-stamp
build-stamp:
	./configure --prefix=/usr --mandir=/usr/share/man \
		--with-hotplugowner=root:audio --with-hotplugperms=0666
	$(MAKE)
	cd doc/man/man3 && \
		rm -f _* *.[ch].3 && \
		for i in *.3; do \
			if [ `echo "$$i" | sed -e 's/^\(....\).\+/\1/'` != "njb_" ]; then \
				mv $$i njb_$$i; \
			fi \
		done
	chmod +x nomadjukebox
	touch $@

install: build
	dh_clean -k
	$(MAKE) DESTDIR=`pwd`/debian/tmp install

clean:
	rm -f build-stamp
	dh_clean
	-$(MAKE) distclean

binary-indep: build
	dh_install -i
	dh_installchangelogs -i ChangeLog
	dh_installdocs -i
	dh_installexamples -i
	dh_installman -i
	dh_compress -i
	dh_fixperms -i
	dh_gencontrol -i
	dh_installdeb -i
	dh_builddeb -i

binary-arch: install
	dh_install -a --sourcedir=debian/tmp
	dh_installchangelogs -a ChangeLog
	dh_installdocs -a
	dh_link -a
	dh_compress -a
	dh_fixperms -a
	dh_strip -a
	dh_makeshlibs -a
	dh_shlibdeps -a
	dh_gencontrol -a
	dh_installdeb -a
	dh_md5sums -a
	dh_builddeb -a

binary: binary-indep binary-arch

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