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 |
get-orig-source: |
15 |
uscan --force-download |
16 |
|
17 |
configure: configure-stamp |
18 |
configure-stamp: $(DPATCH_STAMPFN) |
19 |
dh_testdir |
20 |
touch configure-stamp |
21 |
|
22 |
build: build-stamp |
23 |
build-stamp: configure-stamp |
24 |
dh_testdir |
25 |
JAVA_HOME=/usr/lib/jvm/java-gcj ant package javadoc |
26 |
touch $@ |
27 |
|
28 |
clean: unpatch |
29 |
dh_testdir |
30 |
dh_testroot |
31 |
ant clean |
32 |
rm -f build-stamp configure-stamp install-stamp |
33 |
dh_clean |
34 |
|
35 |
install: install-stamp |
36 |
install-stamp: build-stamp |
37 |
dh_testdir |
38 |
dh_testroot |
39 |
dh_clean -k |
40 |
dh_installdirs |
41 |
touch $@ |
42 |
|
43 |
# Build architecture-independent files here. |
44 |
binary-indep: build install |
45 |
dh_testdir |
46 |
dh_testroot |
47 |
dh_installchangelogs |
48 |
dh_installdocs |
49 |
dh_install |
50 |
dh_link |
51 |
dh_compress |
52 |
dh_fixperms |
53 |
dh_installdeb |
54 |
dh_shlibdeps |
55 |
dh_gencontrol |
56 |
dh_md5sums |
57 |
dh_builddeb |
58 |
|
59 |
# Build architecture-dependent files here. |
60 |
binary-arch: build install |
61 |
# We have nothing to do by default. |
62 |
|
63 |
binary: binary-indep binary-arch |
64 |
.PHONY: build clean binary-indep binary-arch binary install configure |