File: rules

package info (click to toggle)
libforms 1.0.93sp1-2
  • links: PTS
  • area: main
  • in suites: wheezy
  • size: 11,548 kB
  • sloc: ansic: 97,227; sh: 9,236; makefile: 858
file content (71 lines) | stat: -rwxr-xr-x 1,865 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
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.

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


build: patch-stamp build-stamp
build-stamp:
	dh_testdir
	./configure --prefix=/usr
	make
	(cd doc; make info pdf html)
	touch build-stamp

clean: unpatch
	dh_testdir
	dh_testroot
	dh_auto_clean
	rm -f fdesign/Makefile demos/Makefile fd2ps/Makefile gl/Makefile
	rm -f lib/include/Makefile lib/Makefile image/Makefile Makefile
	rm -f build-stamp
	dh_clean

# Build architecture-independent files here.
binary-indep: build

# Build architecture-dependent files here.

build-arch: DH_OPTIONS=-a
build-arch: build

install-arch: build
	dh_testdir
	dh_testroot
	dh_prep
	$(MAKE) install DESTDIR=`pwd`/debian/tmp
	dh_installdirs
	dh_install
	rm -fR debian/libforms-doc/usr/share/doc/libforms-doc/html/images/CVS
	dh_installman -p libforms-bin fd2ps/fd2ps.1 fdesign/fdesign.1
	dh_installman -p libforms-dev lib/xforms.5
	(cd debian/libforms-dev/usr/share/man/man5/ ; ln -s xforms.5.gz libforms1.5.gz)
	dh_installdocs
	dh_installdocs -p libforms-doc doc/xforms.pdf
	dh_installchangelogs
	dh_installinfo -p libforms-dev doc/xforms.info*
#	for i in `ls debian/*.lintian-overrides`; do \
#	install -p -m 0644 -o root -g root $$i \
#	debian/`basename $$i .lintian-overrides`/usr/share/lintian/overrides/`basename $$i .lintian-overrides`; \
#	done
	dh_strip
	dh_compress
	dh_fixperms

binary-arch: DH_options=-a
binary-arch: build install-arch
	dh_makeshlibs
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb


source diff:                                                                  
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install-arch patch-stamp unpatch