File: rules

package info (click to toggle)
linpopup 1.2.0-8.3
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 640 kB
  • ctags: 247
  • sloc: ansic: 2,885; sh: 259; makefile: 228
file content (98 lines) | stat: -rwxr-xr-x 2,599 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
#!/usr/bin/make -f
# Made with the aid of debmake, by Christoph Lameter,
# based on the sample debian/rules file for GNU hello by Ian Jackson.

topdir=$(shell pwd)

include /usr/share/dpatch/dpatch.make

build: build-stamp
build-stamp: patch-stamp
	dh_testdir
	
    # save these to minimize the diff; doesn't make any difference
	rm -f debian/LinPopUp.1.in debian/LinPopUp.1 debian/INSTALL debian/MANUAL
	cp extra/LinPopUp.1.in debian/.
	[ -f LinPopUp.1 ] && cp LinPopUp.1 debian/. || true
	cp INSTALL             debian/.
	cp MANUAL              debian/.
	cd extra; ln -s LinPopUp.1.in linpopup.1.in
	cd extra; ln -s LinPopUp.pod  linpopup.pod

    # first initialize the documentation to reflect the debian location of stuff
	cd src; make CFLAGS="-O2 -g -Wall" DESTDIR=/usr PROGNAME=linpopup DOC_DIR=/usr/share/doc/linpopup linpopup docs

    # restore these to minimize the diff
	rm -f extra/LinPopUp.1.in LinPopUp.1 INSTALL MANUAL
	mv debian/LinPopUp.1.in extra/.
	[ -f debian/LinPopUp.1 ] && mv debian/LinPopUp.1 . || true
	mv debian/INSTALL       .
	mv debian/MANUAL        .

	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	-rm -f build

	rm -f configure-stamp build-stamp

	-cd src; make clean PROGNAME=linpopup
	-rm -f src/LinPopUp
	-rm -f `find . -name "*~"`
	-rm -rf debian/tmp debian/files* core debian/substvars
	-rm -f extra/linpopup.1.in extra/linpopup.pod linpopup.1
	debconf-updatepo
	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs

binary-indep: build install
	dh_testdir
	dh_testroot
# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: build install
	dh_testdir
	dh_testroot
	cd src; make install \
		PROGNAME=linpopup \
		PROGNAME_LNK=LinPopUp \
		DESTDIR=$(topdir)/debian/linpopup/usr \
		DOC_DIR=$(topdir)/debian/linpopup/usr/share/doc/linpopup \
		INSTALL_MANPATH=$(topdir)/debian/linpopup/usr/share/man  \
		DATA_DIR=$(topdir)/debian/linpopup/var/lib/linpopup
	rm -f debian/linpopup/usr/share/doc/linpopup/COPYING
	rm -f debian/linpopup/var/lib/linpopup/messages.dat
	mv debian/linpopup/usr/share/doc/linpopup/ChangeLog debian/linpopup/usr/share/doc/linpopup/changelog

	dh_install
	dh_installexamples
	dh_installdebconf
	dh_installchangelogs
	dh_installdocs
	dh_installmenu
	dh_desktop
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb


binary: binary-indep binary-arch

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

# vim:set noet: