File: rules

package info (click to toggle)
axe 6.1.2-10
  • links: PTS
  • area: non-free
  • in suites: woody
  • size: 1,468 kB
  • ctags: 2,245
  • sloc: ansic: 20,638; sed: 361; tcl: 72; makefile: 46; sh: 20
file content (59 lines) | stat: -rwxr-xr-x 1,393 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
#!/usr/bin/make -f
# Derived from Ian Jackson's hello example, Christoph Lameter's debmake
# example, and Joey Hess' debhelper example.

# Use V3 compatibility to minimize policy violation problems.
DH_COMPAT=3

build: stamp-build
stamp-build:
	dh_testdir
	xmkmf -a
	$(MAKE) Xaw3d all
	touch $@

clean:
	dh_testdir
	dh_testroot
	[ -f Makefile ] || (xmkmf && $(MAKE) Makefiles)
	$(MAKE) clean
	rm -fr X11 Help/X11
	rm -f Widgets/X11/Xaw3d/X11/*
	dh_clean stamp-build `find . -type f -name Makefile`

install:
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/X11R6/bin
	$(MAKE) install install.man DESTDIR=`pwd`/debian/tmp
	rm -f `pwd`/debian/tmp/usr/X11R6/lib/X11/axe*info*
	cd `pwd`/debian/tmp/usr/X11R6/bin && mv axe axe.real

binary-indep:
# There are no architecture-independent packages here.

binary-arch: build install
	dh_testdir
	dh_testroot
	dh_installdocs README
	dh_installchangelogs
	dh_installmenu
	dh_installmanpages
	ln -s axe.1x `pwd`/debian/tmp/usr/X11R6/man/man1/axe.real.1x
	ln -s axe.1x `pwd`/debian/tmp/usr/X11R6/man/man1/coaxe.1x
	ln -s axe.1x `pwd`/debian/tmp/usr/X11R6/man/man1/faxe.1x
#	dh_undocumented coaxe.1x faxe.1x
	dh_installinfo -n Help/axe.info
	dh_installxaw
	dh_strip
	dh_compress
	dh_fixperms
	dh_shlibdeps
	dh_gencontrol
	dh_installdeb
	dh_md5sums
	dh_builddeb

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