File: rules

package info (click to toggle)
gap-gdat 4r7p3-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,916 kB
  • sloc: makefile: 38
file content (55 lines) | stat: -rwxr-xr-x 1,675 bytes parent folder | download | duplicates (3)
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
#!/usr/bin/make -f
# debian/rule for gap-gdat
# GNU copyright 2002 by Bill Allombert
# Based on a sample by
# GNU copyright 1997 by Joey Hess.

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

build-arch: 
build-indep:
build: build-arch build-indep

clean:
	dh_testdir
	dh_testroot
	rm -f build-arch-stamp build-indep-stamp configure-stamp
	dh_clean

install: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs
	mkdir -p debian/tmp/usr/share
	tar zxf gap-gdat.tar.gz -C debian/tmp/usr/share
	chmod 0644 -R debian/tmp/usr/share
	dh_movefiles
	#Check whether debian/tmp is empty at this stage
	find debian/tmp -depth -type d -exec rmdir {} \;
	#gzip won't compress .z files without that hack...
	find debian/gap-small-groups/usr/share/gap/small/small2 -type f -exec sh -c 'gzip --best -c {} > {}.gz && rm {}' \;
	find debian/gap-small-groups/usr/share/gap/small/id2 -type f -exec sh -c 'gzip --best -c {} > {}.gz && rm {}' \;
	find debian/gap-small-groups-extra/usr/share/gap/small -type f -exec sh -c 'gzip --best -c {} > {}.gz && rm {}' \;
	gzip --best -r debian/gap-prim-groups/usr/share/gap/prim/grps/
	gzip --best debian/gap-trans-groups/usr/share/gap/trans/*.grp

# Build architecture-independent files here.
# Pass -i to all debhelper commands in this target to reduce clutter.
binary-indep: build install
	dh_testdir -i
	dh_testroot -i
	dh_installdocs -i --all debian/changelog-4.2.Debian
	dh_installchangelogs  -i
	dh_link -i
	dh_compress -i
	dh_fixperms -i
	dh_installdeb -i
	dh_gencontrol -i
	dh_md5sums -i
	dh_builddeb -i

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