1 |
#!/usr/bin/make -f |
2 |
# -*- makefile -*- |
3 |
# Sample debian/rules that uses debhelper. |
4 |
# This file was originally written by Joey Hess and Craig Small. |
5 |
# As a special exception, when this file is copied by dh-make into a |
6 |
# dh-make output file, you may use that output file without restriction. |
7 |
# This special exception was added by Craig Small in version 0.37 of dh-make. |
8 |
|
9 |
# Uncomment this to turn on verbose mode. |
10 |
#export DH_VERBOSE=1 |
11 |
|
12 |
include /usr/share/dpatch/dpatch.make |
13 |
|
14 |
configure: configure-stamp |
15 |
configure-stamp: $(DPATCH_STAMPFN) |
16 |
dh_testdir |
17 |
touch configure-stamp |
18 |
|
19 |
build: build-stamp |
20 |
build-stamp: configure-stamp |
21 |
dh_testdir |
22 |
JAVA_HOME=/usr/lib/jvm/java-gcj ant jar javadoc |
23 |
touch $@ |
24 |
|
25 |
clean: unpatch |
26 |
dh_testdir |
27 |
dh_testroot |
28 |
rm -f build-stamp configure-stamp install-stamp |
29 |
ant clean |
30 |
dh_clean |
31 |
|
32 |
install: install-stamp |
33 |
install-stamp: build-stamp |
34 |
dh_testdir |
35 |
dh_testroot |
36 |
dh_clean -k |
37 |
dh_installdirs |
38 |
touch $@ |
39 |
|
40 |
# Build architecture-independent files here. |
41 |
binary-indep: build install |
42 |
dh_testdir |
43 |
dh_testroot |
44 |
dh_installchangelogs RELEASE-NOTES.txt |
45 |
dh_installdocs |
46 |
dh_install |
47 |
dh_compress |
48 |
dh_fixperms |
49 |
dh_installdeb |
50 |
dh_shlibdeps |
51 |
dh_gencontrol |
52 |
dh_md5sums |
53 |
dh_builddeb |
54 |
|
55 |
# Build architecture-dependent files here. |
56 |
binary-arch: build install |
57 |
|
58 |
binary: binary-indep binary-arch |
59 |
.PHONY: build clean binary-indep binary-arch binary install configure |