File: rules

package info (click to toggle)
wget 1.5.3-3
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,968 kB
  • ctags: 927
  • sloc: ansic: 14,209; sh: 1,532; makefile: 317; perl: 54
file content (72 lines) | stat: -rwxr-xr-x 1,951 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
#!/usr/bin/make -f
# Sample debian.rules file - for GNU Hello (1.3).
# Copyright 1994,1995 by Ian Jackson.
# I hereby give you perpetual unlimited permission to copy,
# modify and relicense this file, provided that you do not remove
# my name from the file itself.  (I assert my moral right of
# paternity under the Copyright, Designs and Patents Act 1988.)
#

SHELL=/bin/bash

build:
	dh_testdir
	cd po ; for i in *.gmo; do if [ ! -r $$i-saved ]; then cp -p $$i $$i-saved ; fi ; done
	if [ -x configure ]; then \
		./configure --prefix=/usr --sysconfdir=/etc \
		'--mandir=$${datadir}/man' '--infodir=$${datadir}/info' \
	; fi
	make CFLAGS="-O2 -g -Wall"
	touch build

clean:
	dh_testdir
	rm -f build
	if [ -r Makefile ]; then \
		make distclean; \
	else \
		rm -f config.{log,cache,status} Makefile {doc,util,src}/Makefile ; \
	fi
	dh_clean
	cd po ; for i in *.gmo; do if [ -r $$i-saved ]; then mv $$i-saved $$i ; fi ; done
	rm -f po/ja.gmo # this file is not included upstream.

binary-indep: build
	dh_testroot
	dh_testdir
# 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
	dh_testroot
	dh_testdir
	rm -rf debian/tmp
	make install prefix=$$(pwd)/debian/tmp/usr sysconfdir=$$(pwd)/debian/tmp/etc INSTALL="/usr/bin/install -p"
	strip -R .comment -R .note debian/tmp/usr/bin/wget
	install -d debian/tmp/usr/share/doc/wget/html
	cp doc/*.html debian/tmp/usr/share/doc/wget/html
	install -p -m644 doc/sample.wgetrc debian/tmp/etc/wgetrc

	dh_installdirs
	dh_installdocs NEWS README MAILING-LIST TODO AUTHORS
	dh_installexamples
	dh_installchangelogs src/ChangeLog
	dh_installmenu
	dh_installcron
	#dh_installinfo
	dh_movefiles
	dh_strip
	dh_compress
	dh_fixperms
	dh_suidregister
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_installdeb
	dh_md5sums
	dh_builddeb

binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean