File: rules

package info (click to toggle)
html-munger 0.01-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 60 kB
  • ctags: 10
  • sloc: perl: 99; makefile: 34
file content (50 lines) | stat: -rwxr-xr-x 1,087 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
#!/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.


build:
	dh_testdir
	perl Makefile.PL INSTALLDIRS=vendor
	$(MAKE) OPTIMIZE="-O2 -g -Wall"
	touch build

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

binary-indep: checkroot build

# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-arch: checkroot build
	-rm -rf debian/tmp
	dh_installdirs

	$(MAKE) pure_install PREFIX=$(CURDIR)/debian/tmp/usr \
		INSTALLMAN1DIR=$(CURDIR)/debian/share/man/man1 \
		INSTALLMAN3DIR=$(CURDIR)/debian/share/man/man3
	cp $(CURDIR)/debian/HTML::Munger.3pm $(CURDIR)/debian/share/man/man3/
	dh_installmanpages
	dh_installdocs README
	dh_installchangelogs Changes
	dh_strip 
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_perl
	dh_gencontrol
	dh_installdeb
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

checkroot:
	dh_testdir
	dh_testroot

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