File: rules

package info (click to toggle)
jpeginfo 1.5a-1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 260 kB
  • ctags: 92
  • sloc: sh: 1,507; ansic: 1,134; makefile: 91
file content (59 lines) | stat: -rwxr-xr-x 1,516 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
#!/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	
	./configure --prefix=/usr '--mandir=$${datadir}/man'
	make CFLAGS="-O2 -g -Wall"
	touch build

clean:
	dh_testdir
	rm -f build
	if [ -r Makefile ]; then make distclean ; fi
	rm -f `find . -name "*~"` config.cache config.status *.o
	rm -rf debian/tmp debian/files* core debian/substvars changelog.tmp
	dh_clean

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
	install -d debian/tmp/usr/share/man/man1 debian/tmp/usr/bin
	make install prefix=`pwd`/debian/tmp/usr INSTALL="/usr/bin/install -p"
# Must have debmake installed for this to work. Otherwise please copy
# /usr/bin/debstd into the debian directory and change debstd to debian/debstd
	sed -ne '/HIST/,/^$$/p' < README > changelog.tmp
	touch --reference README changelog.tmp
	dh_installdirs
	dh_installdocs
	dh_installexamples
	dh_installchangelogs changelog.tmp
	dh_installmenu
	dh_installcron
	dh_installmanpages -pjpeginfo
	dh_movefiles
	dh_strip
	dh_compress
	dh_fixperms
	dh_suidregister
	dh_shlibdeps
	dh_gencontrol
	dh_makeshlibs
	dh_installdeb
	dh_md5sums
	dh_builddeb

# Below here is fairly generic really

binary:		binary-indep binary-arch

.PHONY: binary binary-arch binary-indep clean