412cd0f4cc1220bf477c51ee658d88c177e1f3f1
[debian/pforth] / debian / rules
1 #!/usr/bin/make -f
2 # MAde with the aid of dh_make, by Craig Small
3 # Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess.
4 # Some lines taken from debmake, by Cristoph Lameter.
5
6 # comment this to turn off verbose mode.
7 export DH_VERBOSE=1
8
9 build: build-stamp
10 build-stamp:
11         dh_testdir
12         mkdir objects
13         $(MAKE) 
14         touch build-stamp
15
16 clean:
17         dh_testdir
18         dh_testroot
19         rm -f build-stamp install-stamp
20         -$(MAKE) clean
21         rm -fr objects
22         dh_clean
23
24 install: install-stamp
25 install-stamp: build-stamp
26         dh_testdir
27         dh_testroot
28         dh_clean -k
29         dh_installdirs
30
31         install -m0755 pforth `pwd`/debian/tmp/usr/bin/pforth
32         install -m0644 pforth.dic `pwd`/debian/tmp/usr/lib/pforth/pforth.dic
33
34         touch install-stamp
35
36 # Build architecture-independent files here.
37 binary-indep: build install
38
39 # Build architecture-dependent files here.
40 binary-arch: build install
41         dh_testdir
42         dh_testroot
43         dh_installdocs
44         dh_installexamples
45         dh_installmenu
46         dh_installcron
47         dh_installmanpages
48         dh_installchangelogs 
49         dh_strip
50         dh_compress
51         dh_fixperms
52         dh_installdeb
53         dh_shlibdeps
54         dh_gencontrol
55         dh_md5sums
56         dh_builddeb
57
58 source diff:                                                                  
59         @echo >&2 'source and diff are obsolete - use dpkg-source -b'; false
60
61 binary: binary-indep binary-arch
62 .PHONY: build clean binary-indep binary-arch binary