File: rules

package info (click to toggle)
cup 0.10j-3
  • links: PTS
  • area: main
  • in suites: woody
  • size: 952 kB
  • ctags: 754
  • sloc: java: 5,619; makefile: 117; csh: 64; sh: 3
file content (71 lines) | stat: -rwxr-xr-x 1,368 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
#! /usr/bin/make -f
# Generic debian/rules
# Written by Charles Briscoe-Smith, 1997-8
# Contributed to the public domain
# $Id: rules,v 1.11 1998/08/18 13:43:05 cpb4 Exp $

LIBRARY=cup
VERSION=0.10j

build:
	$(checkdir)
	make -f debian/Makefile
	touch build

# Build the package and prepare the install tree

# Build package files



# There are no architecture-independent files to be uploaded
# generated by this package.  If there were any they would be
# made here.

binary-indep: checkroot build
	$(checkdir)
#	dh_testdir
#	dh_testroot
#	dh_clean -k
	dh_installdirs usr/share/java usr/bin
#	install -d debian/tmp

	install -m644 ${LIBRARY}.jar debian/tmp/usr/share/java/${LIBRARY}-${VERSION}.jar
	dh_installdocs manual.html cup_logo.gif
	dh_installchangelogs CHANGELOG
	dh_installman debian/cup.1
	install -m755 debian/cup debian/tmp/usr/bin/cup
	dh_link
	dh_fixperms
	dh_strip
	dh_compress
	dh_installdeb
#	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	chown -R root.root debian/tmp
	chmod -R go=rX debian/tmp
	dpkg --build debian/tmp ..

binary-arch: checkroot
define checkdir
	test -f debian/rules
endef

binary: binary-arch binary-indep


# Clean up afterwards

clean: 
	$(checkdir)
	dh_clean
	make -f debian/Makefile	clean
	rm -f build
#	-rm -rf debian/tmp

checkroot:
	$(checkdir)
	test root = "`whoami`"

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