File: rules

package info (click to toggle)
xcontrib 3.3.3.1-0.1
  • links: PTS
  • area: main
  • in suites: potato
  • size: 1,348 kB
  • ctags: 2,176
  • sloc: ansic: 18,844; lex: 161; yacc: 97; makefile: 44; sh: 19
file content (57 lines) | stat: -rwxr-xr-x 1,262 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
#!/usr/bin/make -f
# Derived from previous hello-based rules file and dh_make's example.

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

build: build-stamp
build-stamp:
	dh_testdir
# Why aren't we simply using 'xmkmf -a'?
	xmkmf
	$(MAKE) Makefiles
	$(MAKE) CCOPTIONS="-O2 -g -Wall"
	touch build-stamp

clean:
	dh_testdir
	dh_testroot
	xmkmf
	[ ! -f Makefile ] || $(MAKE) Makefiles
	$(MAKE) clean
	dh_clean build-stamp `find . -name Makefile -type f`

install: build-stamp
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs usr/X11R6
	$(MAKE) install install.man DESTDIR=`pwd`/debian/tmp
	cd debian/tmp/usr/X11R6/bin && mv listres listres.real && mv viewres viewres.real

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

binary-arch: install
	dh_testversion 2.0.81
	dh_testdir
	dh_testroot
	dh_installdocs
	dh_installchangelogs
	dh_installmenu
	dh_installxaw
	dh_installmanpages
	cd debian/tmp/usr/X11R6/man/man1 && \
           ln -s listres.1x.gz listres.real.1x.gz && \
           ln -s viewres.1x.gz viewres.real.1x.gz
	dh_strip
	dh_compress
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

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