author | rubidium |
Sun, 30 Nov 2008 18:45:44 +0000 | |
changeset 10394 | a0fec997d412 |
parent 10098 | de9c1bd521c8 |
permissions | -rwxr-xr-x |
285 | 1 |
#!/usr/bin/make -f |
2 |
# -*- makefile -*- |
|
3 |
# Sample debian/rules that uses debhelper. |
|
4 |
# GNU copyright 1997 to 1999 by Joey Hess. |
|
5 |
||
6 |
# Uncomment this to turn on verbose mode. |
|
7 |
#export DH_VERBOSE=1 |
|
8 |
||
10098
de9c1bd521c8
(svn r14279) -Revert (r14237): Undo changes for renaming Debian packages, this is not the right way to do this.
matthijs
parents:
10070
diff
changeset
|
9 |
configure: configure-stamp |
285 | 10 |
configure-stamp: |
11 |
dh_testdir |
|
12 |
# Add here commands to configure the package. |
|
13 |
||
14 |
touch configure-stamp |
|
15 |
||
16 |
||
10098
de9c1bd521c8
(svn r14279) -Revert (r14237): Undo changes for renaming Debian packages, this is not the right way to do this.
matthijs
parents:
10070
diff
changeset
|
17 |
build: configure build-stamp |
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
18 |
build-stamp: |
285 | 19 |
dh_testdir |
20 |
||
21 |
# Add here commands to compile the package. |
|
22 |
||
10098
de9c1bd521c8
(svn r14279) -Revert (r14237): Undo changes for renaming Debian packages, this is not the right way to do this.
matthijs
parents:
10070
diff
changeset
|
23 |
./configure --prefix-dir=/usr --binary-dir=games --data-dir=share/games/openttd --icon-dir=share/pixmaps --personal-dir=.openttd --install-dir=debian/openttd |
5484
7ad86e421c42
(svn r7768) -Fix (r7765): use $(MAKE) instead of make in the debian rules.
rubidium
parents:
5481
diff
changeset
|
24 |
$(MAKE) |
285 | 25 |
|
26 |
#/usr/bin/docbook-to-man debian/openttd.sgml > openttd.1 |
|
27 |
||
28 |
touch build-stamp |
|
29 |
||
10098
de9c1bd521c8
(svn r14279) -Revert (r14237): Undo changes for renaming Debian packages, this is not the right way to do this.
matthijs
parents:
10070
diff
changeset
|
30 |
clean: |
285 | 31 |
dh_testdir |
32 |
dh_testroot |
|
33 |
rm -f build-stamp configure-stamp |
|
34 |
||
35 |
# Add here commands to clean up after the build process. |
|
10070
8970f1074f21
(svn r14238) -Change [Debian]: Update Debian packaging files to the latest official Debian version.
matthijs
parents:
10069
diff
changeset
|
36 |
# We check for Makefile presence, because clean is called at the |
8970f1074f21
(svn r14238) -Change [Debian]: Update Debian packaging files to the latest official Debian version.
matthijs
parents:
10069
diff
changeset
|
37 |
# start of the build process (before configure) where we don't |
8970f1074f21
(svn r14238) -Change [Debian]: Update Debian packaging files to the latest official Debian version.
matthijs
parents:
10069
diff
changeset
|
38 |
# have a Makefile yet. |
10394
a0fec997d412
(svn r14645) -Fix [FS#2431]: Debian packaging rules could use a non-existing makefile target when rerunning it with dpkg-buildpackage
rubidium
parents:
10098
diff
changeset
|
39 |
[ ! -f Makefile ] || $(MAKE) mrproper |
285 | 40 |
|
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
41 |
dh_clean |
285 | 42 |
|
10098
de9c1bd521c8
(svn r14279) -Revert (r14237): Undo changes for renaming Debian packages, this is not the right way to do this.
matthijs
parents:
10070
diff
changeset
|
43 |
install: build |
285 | 44 |
dh_testdir |
45 |
dh_testroot |
|
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
46 |
dh_clean -k |
285 | 47 |
dh_installdirs |
48 |
||
49 |
# Add here commands to install the package into debian/openttd. |
|
5481
c194404a46b0
(svn r7765) -Fix (r7759): forgot to update the os/debian files.
rubidium
parents:
5356
diff
changeset
|
50 |
$(MAKE) install |
285 | 51 |
|
52 |
# Build architecture-independent files here. |
|
53 |
binary-indep: build install |
|
54 |
# We have nothing to do by default. |
|
55 |
||
56 |
# Build architecture-dependent files here. |
|
10098
de9c1bd521c8
(svn r14279) -Revert (r14237): Undo changes for renaming Debian packages, this is not the right way to do this.
matthijs
parents:
10070
diff
changeset
|
57 |
binary-arch: build install |
285 | 58 |
dh_testdir |
59 |
dh_testroot |
|
60 |
dh_installchangelogs changelog.txt |
|
61 |
dh_installdocs |
|
62 |
dh_installexamples |
|
63 |
# dh_install |
|
1143
5879a8637190
(svn r1644) - Some minor corrections to the os/debian dir.
matthijs
parents:
680
diff
changeset
|
64 |
dh_installmenu |
3170
3740e285e4df
(svn r3801) * Update debian packaging files to the ones used for releasing 0.4.5 (see os/debian/changelog for details).
matthijs
parents:
1865
diff
changeset
|
65 |
dh_installdebconf |
285 | 66 |
# dh_installlogrotate |
67 |
# dh_installemacsen |
|
68 |
# dh_installpam |
|
69 |
# dh_installmime |
|
70 |
# dh_installinit |
|
71 |
# dh_installcron |
|
72 |
# dh_installinfo |
|
73 |
dh_installman docs/openttd.6 |
|
74 |
dh_link |
|
75 |
dh_strip |
|
76 |
dh_compress |
|
77 |
dh_fixperms |
|
78 |
# dh_perl |
|
79 |
# dh_python |
|
80 |
# dh_makeshlibs |
|
81 |
dh_installdeb |
|
82 |
dh_shlibdeps |
|
83 |
dh_gencontrol |
|
84 |
dh_md5sums |
|
85 |
dh_builddeb |
|
86 |
||
87 |
binary: binary-indep binary-arch |
|
10070
8970f1074f21
(svn r14238) -Change [Debian]: Update Debian packaging files to the latest official Debian version.
matthijs
parents:
10069
diff
changeset
|
88 |
.PHONY: build clean binary-indep binary-arch binary install configure |