File: rules

package info (click to toggle)
lg-base 28-1
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 1,192 kB
  • ctags: 30
  • sloc: perl: 85; makefile: 30; sh: 1
file content (42 lines) | stat: -rwxr-xr-x 877 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f

# This script uses debhelper by Joey Hess
# the diet script in this directory removes the large issueXX.txt/html files
export DH_VERBOSE=1

build:	build-stamp

build-stamp:
	dh_testdir
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	dh_clean

binary-indep:	build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs  usr/lib/lg usr/doc/lg
	# move files into debian
	install -m0755 debian/fixlinks debian/tmp/usr/lib/lg
	cp -dR `ls |grep -v "^debian$$"` debian/tmp/usr/doc/lg
	-rm debian/tmp/usr/doc/lg/build-stamp
	-ln -s lg_frontpage.html debian/tmp/usr/doc/lg/index.html
	dh_installchangelogs
	dh_installdocs
	dh_fixperms
	dh_installdeb
	gzip -9 debian/tmp/usr/doc/lg-base/changelog.Debian
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb


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