File: rules

package info (click to toggle)
pdmenu 1.2.69
  • links: PTS
  • area: main
  • in suites: woody
  • size: 652 kB
  • ctags: 254
  • sloc: ansic: 2,012; sh: 297; perl: 75; makefile: 63
file content (74 lines) | stat: -rwxr-xr-x 2,259 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
#!/usr/bin/make -f

PATH += :debian

build: link-stamp build-stamp
build-stamp:
	dh_testdir
	# Shadows are broken because debian uses a wide patched slang.
	./configure --prefix=/usr --sysconfdir=/etc --mandir=/usr/share/man
	$(MAKE)
	touch build-stamp

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

# Build architecture-independent files here.
binary-indep: build
	# We have nothing to do by default.

# Build architecture-dependent files here.
binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean
	$(MAKE) INSTALL_PREFIX=debian/tmp install
	install -m 0644 debian/pdmenurc.debian debian/tmp/etc/pdmenurc
	install -d debian/tmp/var/lib/pdmenu debian/tmp/usr/lib/pdmenu
	install debian/cpp.pl debian/tmp/usr/lib/pdmenu/
	dh_installmenu
	dh_installmanpages
	dh_installdocs doc/BUGS README doc/TODO doc/ANNOUNCE
	dh_installexamples examples/pdmenurc.monitor examples/pdmenurc \
		examples/pdmenurc.complex examples/README examples/ba.lpd
	# Examples dh_installexamples cannot handle installing.
	install -d debian/tmp/usr/share/doc/pdmenu/examples/newbie
	install examples/newbie/pdmenurc.newbie \
		examples/newbie/rpm-info-on-command \
		examples/newbie/modem-check \
		debian/tmp/usr/share/doc/pdmenu/examples/newbie
	dh_installchangelogs
	dh_link var/lib/pdmenu/.pdmenurc_auto var/lib/pdmenu/pdmenurc_auto
	dh_compress -X examples/
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_fixperms
	dh_md5sums
	dh_builddeb

# Fix links when checking out of cvs by calling this target.
link-stamp:
	sh -e debian/fixlinks
	touch link-stamp

VERSION=$(shell expr "`dpkg-parsechangelog 2>/dev/null |grep Version:`" : '.*Version: \(.*\)')

# Update the web page. Not intended for use by anyone except the
# author.
installhook:
	cp debian/changelog /home/pub/programs/pdmenu/CHANGES
	cp doc/TODO /home/pub/programs/pdmenu/TODO
	cp README /home/pub/programs/pdmenu/README
	cp doc/BUGS /home/pub/programs/pdmenu/BUGS
	echo -n $(VERSION) > /home/pub/programs/pdmenu/LATEST-VERSION-IS
	cd /home/ftp/pub/code/pdmenu && \
		ln -sf ../debian/pdmenu_$(VERSION).tar.gz pdmenu_$(VERSION).tar.gz && \
		ln -sf ../debian/pdmenu_$(VERSION).tar.gz pdmenu.tar.gz

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