0 | 0 |
#!/usr/bin/make -f
|
1 | |
# -*- makefile -*-
|
2 | |
# Sample debian/rules that uses debhelper.
|
3 | |
# This file was originally written by Joey Hess and Craig Small.
|
4 | |
# As a special exception, when this file is copied by dh-make into a
|
5 | |
# dh-make output file, you may use that output file without restriction.
|
6 | |
# This special exception was added by Craig Small in version 0.37 of dh-make.
|
7 | 1 |
|
8 | 2 |
# Uncomment this to turn on verbose mode.
|
9 | 3 |
#export DH_VERBOSE=1
|
|
22 | 16 |
configure: configure-stamp
|
23 | 17 |
configure-stamp:
|
24 | 18 |
dh_testdir
|
25 | |
# Add here commands to configure the package.
|
26 | |
|
27 | 19 |
touch configure-stamp
|
28 | |
|
29 | 20 |
|
30 | 21 |
build: build-stamp
|
31 | 22 |
|
32 | 23 |
build-stamp: configure-stamp
|
33 | 24 |
dh_testdir
|
34 | |
|
35 | |
# Add here commands to compile the package.
|
36 | 25 |
cd $(CURDIR)/src ; $(MAKE)
|
37 | |
#docbook-to-man debian/fruit.sgml > fruit.1
|
38 | |
|
39 | 26 |
touch build-stamp
|
40 | 27 |
|
41 | 28 |
clean:
|
42 | 29 |
dh_testdir
|
43 | 30 |
dh_testroot
|
44 | 31 |
rm -f build-stamp configure-stamp
|
45 | |
|
46 | |
# Add here commands to clean up after the build process.
|
47 | 32 |
if [ -e $(CURDIR)/src/fruit ]; then rm $(CURDIR)/src/fruit ; fi
|
48 | 33 |
cd $(CURDIR)/src ; $(MAKE) clean
|
49 | |
|
50 | 34 |
if [ -e $(CURDIR)/debian/fruit/usr/share/doc/html/knights-fruit_settings2.png ]; then rm $(CURDIR)/debian/fruit/usr/share/doc/html/knights-fruit_settings2.png ; fi
|
51 | 35 |
if [ -e $(CURDIR)/debian/fruit/usr/share/doc/html/knights-fruit_settings.png ]; then rm $(CURDIR)/debian/fruit/usr/share/doc/html/knights-fruit_settings.png ; fi
|
52 | 36 |
|
|
58 | 42 |
dh_clean -k
|
59 | 43 |
dh_installdirs
|
60 | 44 |
|
61 | |
# Add here commands to install the package into debian/fruit.
|
62 | 45 |
#$(MAKE) install DESTDIR=$(CURDIR)/debian/fruit
|
63 | 46 |
cp $(CURDIR)/src/fruit $(CURDIR)/debian/fruit/usr/games ; cp $(CURDIR)/book_small.bin $(CURDIR)/debian/fruit/usr/share/games/fruit/
|
64 | 47 |
uudecode $(CURDIR)/debian/knights-fruit_settings.uu
|
|
68 | 51 |
tr -d '\r' < $(CURDIR)/readme.txt > $(CURDIR)/debian/fruit/usr/share/doc/fruit/readme.txt
|
69 | 52 |
tr -d '\r' < $(CURDIR)/technical_10.txt > $(CURDIR)/debian/fruit/usr/share/doc/fruit/technical_10.txt
|
70 | 53 |
|
71 | |
# Build architecture-independent files here.
|
72 | 54 |
binary-indep: build install
|
73 | |
# We have nothing to do by default.
|
74 | 55 |
|
75 | |
# Build architecture-dependent files here.
|
76 | 56 |
binary-arch: build install
|
77 | 57 |
dh_testdir
|
78 | 58 |
dh_testroot
|
79 | 59 |
dh_installchangelogs
|
80 | 60 |
dh_installdocs
|
81 | 61 |
dh_installexamples
|
82 | |
# dh_install
|
83 | |
# dh_installmenu
|
84 | |
# dh_installdebconf
|
85 | |
# dh_installlogrotate
|
86 | |
# dh_installemacsen
|
87 | |
# dh_installpam
|
88 | |
# dh_installmime
|
89 | |
# dh_installinit
|
90 | |
# dh_installcron
|
91 | |
# dh_installinfo
|
92 | 62 |
dh_installman $(CURDIR)/debian/fruit.6
|
93 | 63 |
dh_link
|
94 | 64 |
dh_strip
|
95 | 65 |
dh_compress
|
96 | 66 |
dh_fixperms
|
97 | |
# dh_perl
|
98 | |
# dh_python
|
99 | |
# dh_makeshlibs
|
100 | 67 |
dh_installdeb
|
101 | 68 |
dh_shlibdeps
|
102 | 69 |
dh_gencontrol
|