File: rules

package info (click to toggle)
xbill 2.0-7
  • links: PTS
  • area: main
  • in suites: hamm
  • size: 528 kB
  • ctags: 339
  • sloc: cpp: 1,803; makefile: 38; sh: 21
file content (51 lines) | stat: -rwxr-xr-x 1,216 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
43
44
45
46
47
48
49
50
51
#!/usr/bin/make -f

# If compilation fails with:
# /bin/sh: -c: line 1: syntax error near unexpected token `done'
# then edit /usr/lib/X11/config/Imake.rules and add the ; to line 2329:
#     set +x; else (set -x; $(MKDIRHIER) $(DESTDIR)$$i); fi; \@@\

export DH_VERBOSE=1

build:	build-stamp

build-stamp:
	dh_testdir
	xmkmf -a
	$(MAKE) LOCAL_LDFLAGS=-s
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	rm -f build-stamp
	-$(MAKE) -i clean
	dh_clean
	-rm -f Makefile*

binary-indep:	build

binary-arch:	build
	dh_testdir
	dh_testroot
	dh_clean
	dh_installdirs usr/lib/games/xbill var/lib/games usr/games usr/man/man6 var/lib/games
	$(MAKE) CDEBUGFLAGS=-O2 INSTPGMFLAGS=-s DESTDIR=debian/tmp
	install -o root -g games -m0664 scores debian/tmp/var/lib/games/xbill.scores.default
	cp -R bitmaps pixmaps debian/tmp/usr/lib/games/xbill
	dh_installdocs README*
	cp xbill.man debian/tmp/usr/man/man6/xbill.6
	dh_installmenu
	dh_installchangelogs ChangeLog
	dh_compress
	dh_fixperms
	install -o root -g games -m2755 xbill debian/tmp/usr/games/xbill
	dh_strip
	dh_suidregister
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb

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