File: rules

package info (click to toggle)
net-hotline 0.78-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 356 kB
  • ctags: 351
  • sloc: perl: 4,265; makefile: 33
file content (49 lines) | stat: -rwxr-xr-x 1,005 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
#!/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) install PREFIX=$(CURDIR)/debian/tmp/usr
	chmod 0644 Examples/hibot.pl
	chmod 0644 Examples/hlftp.pl

	dh_installdocs README
	dh_installexamples Examples/hibot.pl Examples/hlftp.pl
	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