author | Ryan C. Gordon <icculus@icculus.org> |
Sun, 01 Dec 2002 11:22:30 +0000 | |
changeset 509 | 80c834815397 |
parent 443 | 984ac3af2b0a |
child 528 | 4d84e1994edb |
permissions | -rwxr-xr-x |
437 | 1 |
#!/usr/bin/make -f |
2 |
# Sample debian/rules that uses debhelper. |
|
3 |
# GNU copyright 1997 to 1999 by Joey Hess. |
|
4 |
||
5 |
# Uncomment this to turn on verbose mode. |
|
6 |
#export DH_VERBOSE=1 |
|
7 |
||
8 |
# This is the debhelper compatibility version to use. |
|
9 |
export DH_COMPAT=3 |
|
10 |
||
11 |
# These are used for cross-compiling and for saving the configure script |
|
12 |
# from having to guess our platform (since we know it already) |
|
13 |
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE) |
|
14 |
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE) |
|
15 |
||
16 |
||
17 |
ifneq (,$(findstring debug,$(DEB_BUILD_OPTIONS))) |
|
18 |
CFLAGS += -g |
|
19 |
endif |
|
20 |
ifeq (,$(findstring nostrip,$(DEB_BUILD_OPTIONS))) |
|
21 |
INSTALL_PROGRAM += -s |
|
22 |
endif |
|
23 |
||
24 |
# shared library versions, option 1 |
|
25 |
version=0.1.7 |
|
26 |
major=0 |
|
27 |
# option 2, assuming the library is created as src/.libs/libfoo.so.2.0.5 or so |
|
28 |
#version=`ls src/.libs/lib*.so.* | \ |
|
29 |
# awk '{if (match($$0,/[0-9]+\.[0-9]+\.[0-9]+$$/)) print substr($$0,RSTART)}'` |
|
30 |
#major=`ls src/.libs/lib*.so.* | \ |
|
31 |
# awk '{if (match($$0,/\.so\.[0-9]+$$/)) print substr($$0,RSTART+4)}'` |
|
32 |
||
33 |
config.status: configure |
|
34 |
dh_testdir |
|
35 |
# Add here commands to configure the package. |
|
443
984ac3af2b0a
Merged updated Debian build-control files with the CVS tree.
vogon
parents:
437
diff
changeset
|
36 |
./bootstrap |
437 | 37 |
CFLAGS="$(CFLAGS)" ./configure --host=$(DEB_HOST_GNU_TYPE) --build=$(DEB_BUILD_GNU_TYPE) --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info |
38 |
||
39 |
||
40 |
build: build-stamp |
|
41 |
build-stamp: config.status |
|
42 |
dh_testdir |
|
43 |
||
44 |
# Add here commands to compile the package. |
|
45 |
$(MAKE) |
|
46 |
doxygen |
|
47 |
||
48 |
touch build-stamp |
|
49 |
||
50 |
clean: |
|
51 |
dh_testdir |
|
52 |
dh_testroot |
|
53 |
rm -f build-stamp |
|
54 |
||
55 |
# Add here commands to clean up after the build process. |
|
56 |
-$(MAKE) distclean |
|
57 |
-test -r /usr/share/misc/config.sub && \ |
|
58 |
cp -f /usr/share/misc/config.sub config.sub |
|
59 |
-test -r /usr/share/misc/config.guess && \ |
|
60 |
cp -f /usr/share/misc/config.guess config.guess |
|
61 |
||
62 |
||
63 |
dh_clean |
|
64 |
||
65 |
install: build |
|
66 |
dh_testdir |
|
67 |
dh_testroot |
|
68 |
dh_clean -k |
|
69 |
dh_installdirs |
|
70 |
||
71 |
# Add here commands to install the package into debian/tmp |
|
72 |
$(MAKE) install prefix=$(CURDIR)/debian/tmp/usr |
|
73 |
install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/latex |
|
74 |
install -d $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/html |
|
443
984ac3af2b0a
Merged updated Debian build-control files with the CVS tree.
vogon
parents:
437
diff
changeset
|
75 |
install -d $(CURDIR)/debian/tmp/usr/share/man/man3 |
984ac3af2b0a
Merged updated Debian build-control files with the CVS tree.
vogon
parents:
437
diff
changeset
|
76 |
# install -D docs/README $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/README |
437 | 77 |
install -D docs/latex/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/latex |
78 |
install -D docs/html/* $(CURDIR)/debian/tmp/usr/share/doc/libphysfs0-dev/html |
|
443
984ac3af2b0a
Merged updated Debian build-control files with the CVS tree.
vogon
parents:
437
diff
changeset
|
79 |
install -D docs/man/man3/* $(CURDIR)/debian/tmp/usr/share/man/man3 |
437 | 80 |
|
81 |
# Build architecture-independent files here. |
|
82 |
binary-indep: build install |
|
83 |
# We have nothing to do by default. |
|
84 |
||
85 |
# Build architecture-dependent files here. |
|
86 |
binary-arch: build install |
|
87 |
dh_testdir |
|
88 |
dh_testroot |
|
89 |
dh_movefiles |
|
90 |
||
91 |
# dh_installdebconf |
|
92 |
dh_installdocs |
|
93 |
dh_installexamples |
|
94 |
dh_installmenu |
|
95 |
# dh_installlogrotate |
|
96 |
# dh_installemacsen |
|
97 |
# dh_installpam |
|
98 |
# dh_installmime |
|
99 |
# dh_installinit |
|
100 |
dh_installcron |
|
101 |
dh_installman |
|
102 |
dh_installinfo |
|
103 |
# dh_undocumented |
|
104 |
dh_installchangelogs CHANGELOG |
|
105 |
dh_link |
|
106 |
dh_strip |
|
107 |
dh_compress |
|
108 |
dh_fixperms |
|
109 |
dh_makeshlibs |
|
110 |
dh_installdeb |
|
111 |
# dh_perl |
|
112 |
dh_shlibdeps |
|
113 |
dh_gencontrol |
|
114 |
dh_md5sums |
|
115 |
dh_builddeb |
|
116 |
||
117 |
binary: binary-indep binary-arch |
|
118 |
.PHONY: build clean binary-indep binary-arch binary install |