File: rules

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

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 INSTALL README
	dh_installchangelogs
	dh_installmenu
	dh_installmanpages
	ln -s axe.1x `pwd`/debian/tmp/usr/X11R6/man/man1/axe.real.1x
	dh_undocumented coaxe.1x faxe.1x poleaxe.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