author | rubidium |
Wed, 30 May 2007 18:24:54 +0000 | |
changeset 6755 | 7cca96e92189 |
parent 5484 | 7ad86e421c42 |
child 7267 | dab6a2c4561e |
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 |
||
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
|
9 |
include /usr/share/dpatch/dpatch.make |
285 | 10 |
|
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
|
11 |
configure: patch configure-stamp |
285 | 12 |
configure-stamp: |
13 |
dh_testdir |
|
14 |
# Add here commands to configure the package. |
|
15 |
||
16 |
touch configure-stamp |
|
17 |
||
18 |
||
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
19 |
build: configure build-stamp |
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
20 |
build-stamp: |
285 | 21 |
dh_testdir |
22 |
||
23 |
# Add here commands to compile the package. |
|
24 |
||
5481
c194404a46b0
(svn r7765) -Fix (r7759): forgot to update the os/debian files.
rubidium
parents:
5356
diff
changeset
|
25 |
./configure --prefix-dir=/usr --binary-dir=games --data-dir=share/games/openttd --icon-dir=share/pixmaps --personal-dir=.openttd --enable-install --install-dir=debian/openttd |
5484
7ad86e421c42
(svn r7768) -Fix (r7765): use $(MAKE) instead of make in the debian rules.
rubidium
parents:
5481
diff
changeset
|
26 |
$(MAKE) |
285 | 27 |
|
28 |
#/usr/bin/docbook-to-man debian/openttd.sgml > openttd.1 |
|
29 |
||
30 |
touch build-stamp |
|
31 |
||
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
|
32 |
clean: unpatch |
285 | 33 |
dh_testdir |
34 |
dh_testroot |
|
35 |
rm -f build-stamp configure-stamp |
|
36 |
||
37 |
# Add here commands to clean up after the build process. |
|
38 |
-$(MAKE) clean |
|
39 |
||
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
40 |
dh_clean |
285 | 41 |
|
42 |
install: build |
|
43 |
dh_testdir |
|
44 |
dh_testroot |
|
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
45 |
dh_clean -k |
285 | 46 |
dh_installdirs |
47 |
||
48 |
# 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
|
49 |
$(MAKE) install |
285 | 50 |
|
51 |
# Build architecture-independent files here. |
|
52 |
binary-indep: build install |
|
53 |
# We have nothing to do by default. |
|
54 |
||
55 |
# Build architecture-dependent files here. |
|
56 |
binary-arch: build install |
|
57 |
dh_testdir |
|
58 |
dh_testroot |
|
59 |
dh_installchangelogs changelog.txt |
|
60 |
dh_installdocs |
|
61 |
dh_installexamples |
|
62 |
# dh_install |
|
1143
5879a8637190
(svn r1644) - Some minor corrections to the os/debian dir.
matthijs
parents:
680
diff
changeset
|
63 |
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
|
64 |
dh_installdebconf |
285 | 65 |
# dh_installlogrotate |
66 |
# dh_installemacsen |
|
67 |
# dh_installpam |
|
68 |
# dh_installmime |
|
69 |
# dh_installinit |
|
70 |
# dh_installcron |
|
71 |
# dh_installinfo |
|
72 |
dh_installman docs/openttd.6 |
|
73 |
dh_link |
|
74 |
dh_strip |
|
75 |
dh_compress |
|
76 |
dh_fixperms |
|
77 |
# dh_perl |
|
78 |
# dh_python |
|
79 |
# dh_makeshlibs |
|
80 |
dh_installdeb |
|
81 |
dh_shlibdeps |
|
82 |
dh_gencontrol |
|
83 |
dh_md5sums |
|
84 |
dh_builddeb |
|
85 |
||
86 |
binary: binary-indep binary-arch |
|
5356
0d5d19f88ad1
(svn r7533) -Codechange [Debian]: Update debian packaging files
matthijs
parents:
3170
diff
changeset
|
87 |
.PHONY: build clean binary-indep binary-arch binary install configure patch |