File: rules

package info (click to toggle)
newsclipper 1.32-5
  • links: PTS
  • area: main
  • in suites: woody
  • size: 448 kB
  • ctags: 206
  • sloc: perl: 5,831; makefile: 62; sh: 12
file content (112 lines) | stat: -rwxr-xr-x 3,246 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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
#!/usr/bin/make -f
# MAde with the aid of dh_make, by Craig Small
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
# Some lines taken from debmake, by Cristoph Lameter.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

ifndef PERL
PERL = /usr/bin/perl
endif

TMP     =`pwd`/debian/tmp
#archlib =`$(PERL) -MConfig -e 'print $$Config{installarchlib}'`
#config  =INSTALLDIRS=perl INSTALLMAN1DIR=$(TMP)/usr/share/man/man1 INSTALLMAN3DIR=$(TMP)/usr/share/man/man3 INSTALLPRIVLIB=$(TMP)/usr/lib/perl5 INSTALLARCHLIB=$(TMP)$(archlib) INSTALLBIN=$(TMP)/usr/bin INSTALLSCRIPT=$(TMP)/usr/bin


build: build-stamp
build-stamp:
	dh_testdir

	
	# Add here commands to compile the package.
#	$(PERL) Makefile.PL $(config)
	$(PERL) Makefile.PL INSTALLDIRS=vendor
	$(MAKE) 

	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp install-stamp

	# Add here commands to clean up after the build process.
	-$(MAKE) clean
#	-rm Makefile Makefile.old
#	-rm packlist

	dh_clean

install: install-stamp
install-stamp: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	
	cp NewsClipper.cfg debian/tmp/etc
	chmod 0644 debian/tmp/etc/NewsClipper.cfg
	# Add here commands to install the package into debian/tmp.
#	$(MAKE) pure_install DESTDIR=`pwd`/debian/tmp
	$(MAKE) install PREFIX=$(PWD)/debian/tmp/usr DESTDIR=`pwd`/debian/tmp
#	$(MAKE) NewsClipper_Cleanup DESTDIR=`pwd`/debian/tmp
	$(MAKE) NewsClipper_Cleanup PREFIX=$(PWD)/debian/tmp/usr DESTDIR=`pwd`/debian/tmp

	mv debian/tmp/usr/bin/NewsClipper.pl debian/tmp/usr/bin/NewsClipper
#	mv debian/tmp/usr/bin/NewsClipper.cfg debian/tmp/etc
	ln -s /etc/NewsClipper.cfg debian/tmp/usr/lib/newsclipper/NewsClipper.cfg
	ln -s . debian/tmp/usr/lib/newsclipper/NewsClipper
#	ln -s . debian/tmp/usr/local/lib/newsclipper/NewsClipper
#	rm `find debian/tmp/usr/lib -name MakeHandler.pl`
#	rm `find debian/tmp/usr/lib -name NewsClipper.pl`
#	rm `find . -name "*.plbak"`
#	cp -a File debian/tmp/usr/lib/perl5
	cd debian/tmp/usr/share/man/man1 && ln -s NewsClipper.pl.1p.gz \
		NewsClipper.1p.gz
	cd debian/tmp/usr/share/man/man1 && ln -s MakeHandler.pl.1pl.gz MakeHandler.1p.gz
	cp debian/ConvertHandler.pl.1p debian/tmp/usr/share/man/man1
	gzip -9 debian/tmp/usr/share/man/man1/ConvertHandler.pl.1p
	cp debian/ConvertConfig.pl.1p debian/tmp/usr/share/man/man1
	gzip -9 debian/tmp/usr/share/man/man1/ConvertConfig.pl.1p

	touch install-stamp

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

binary-indep: build install
#	dh_testversion
	dh_testdir
	dh_testroot
	dh_installdebconf
	dh_installdocs
	dh_installexamples
	dh_perl
	dh_installmenu
#	dh_installemacsen
#	dh_installinit
	dh_installcron
#	dh_undocumented NewsClipper.1
	dh_installchangelogs 
	cp CHANGES debian/tmp/usr/share/doc/newsclipper/changelog

	dh_strip
	dh_perl
	dh_compress
	dh_fixperms
#	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
#	dh_makeshlibs
	dh_md5sums
	dh_builddeb

source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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