File: rules

package info (click to toggle)
aptconf 0.8-0.1
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 324 kB
  • ctags: 69
  • sloc: python: 613; perl: 612; xml: 115; makefile: 64; ansic: 23
file content (85 lines) | stat: -rwxr-xr-x 2,264 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
#!/usr/bin/make -f

# $Progeny: rules 3839 2003-11-17 04:25:01Z dsp $

export DH_COMPAT=3

INSTALL=                /usr/bin/install
INSTALL_DATA=           ${INSTALL} -m 644 -o root -g root
INSTALL_MODULE=         ${INSTALL_DATA}
INSTALL_SCRIPT=         ${INSTALL} -m 755 -o root -g root

debian/config: debian/config.in debian/perl-common
	cat debian/config.in | sed 's/\\/\\\\/' | \
	    (IFS=""; while read line; do \
	        if [ `echo $$line | grep '#COMMON#' | wc -l` -ne 0 ]; then \
	            cat debian/perl-common; \
	        else \
	            echo "$$line"; \
	        fi; \
	    done) > debian/config

debian/postinst: debian/postinst.in debian/perl-common
	cat debian/postinst.in | sed 's/\\/\\\\/' | \
	    (IFS=""; while read line; do \
	        if [ `echo $$line | grep '#COMMON#' | wc -l` -ne 0 ]; then \
	            cat debian/perl-common; \
	        else \
	            echo "$$line"; \
	        fi; \
	    done) > debian/postinst

build: build-stamp
build-stamp:
	dh_testdir

	touch build-stamp

clean:
	dh_testdir
	dh_testroot

	rm -f debian/config
	rm -f debian/postinst

	rm -f build-stamp

	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

	$(INSTALL_DATA) configlet/main.py debian/aptconf/usr/share/configlets/aptconf
	$(INSTALL_DATA) configlet/main.glade debian/aptconf/usr/share/configlets/aptconf
	$(INSTALL_DATA) configlet/aptconf-strings.h debian/aptconf/usr/share/configlets/aptconf
	$(INSTALL_DATA) debian.xml debian/aptconf/usr/share/aptconf
	$(INSTALL_DATA) configlet/topic.dat debian/aptconf/usr/share/gnome/help/aptconf/C
	$(INSTALL_DATA) configlet/aptconf.sgml debian/aptconf/usr/share/gnome/help/aptconf/C

	for image in configlet/images/*.png; do \
	    $(INSTALL_DATA) $$image debian/aptconf/usr/share/gnome/help/aptconf/C/images; \
	done

	cd debian/aptconf/usr/share/gnome/help/aptconf/C && gnome-db2html aptconf.sgml

binary-indep: build install debian/config debian/postinst
	dh_testdir
	dh_testroot
	dh_installdebconf	
	dh_installdocs
	dh_installchangelogs 
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary-arch: build install
# Nothing to do here

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