File: rules

package info (click to toggle)
xbill 2.1-4
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 700 kB
  • ctags: 553
  • sloc: ansic: 3,250; sh: 197; makefile: 125
file content (54 lines) | stat: -rwxr-xr-x 1,232 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
52
53
54
#!/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
DEB=debian/tmp
SCORES=$(DEB)/var/games/xbill.scores.default

build:	build-stamp

build-stamp:
	dh_testdir
	# gtk and setgid requires score-wrapper program
	#./configure --prefix=/usr --enable-gtk
	./configure --prefix=/usr --disable-gtk --disable-motif --enable-athena
	$(MAKE) LOCAL_LDFLAGS=-s
	touch build-stamp

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

binary-indep:	build

binary-arch:	build
	dh_testdir
	dh_testroot
	dh_clean
	DESTDIR=$(DEB) make install
	dh_installdirs /usr/share/pixmaps
	cp debian/xbill.xpm $(DEB)/usr/share/pixmaps
	dh_installdocs README*
	dh_installmenu
	dh_installchangelogs ChangeLog
	dh_compress
	dh_fixperms
	chown root:games $(DEB)/usr/bin/xbill $(SCORES)
	chmod 2755 $(DEB)/usr/bin/xbill
	chmod 0664 $(SCORES)
	dh_strip
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb

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