| 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 |
export DESTDIR=$(CURDIR)/debian/kuvert |
| 9 |
|
| 10 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 11 |
include /usr/share/dpkg/buildflags.mk |
| 12 |
|
| 13 |
build: build-arch build-indep |
| 14 |
|
| 15 |
build-arch: build-stamp |
| 16 |
|
| 17 |
build-indep: build-stamp |
| 18 |
|
| 19 |
build-stamp: |
| 20 |
dh_testdir |
| 21 |
dh_auto_build |
| 22 |
touch build-stamp |
| 23 |
|
| 24 |
clean: |
| 25 |
dh_testdir |
| 26 |
dh_testroot |
| 27 |
rm -f build-stamp |
| 28 |
$(MAKE) clean |
| 29 |
dh_clean |
| 30 |
|
| 31 |
install: build |
| 32 |
dh_testdir |
| 33 |
dh_testroot |
| 34 |
dh_prep |
| 35 |
dh_installdirs |
| 36 |
|
| 37 |
$(MAKE) install DESTDIR=$(DESTDIR) |
| 38 |
|
| 39 |
|
| 40 |
# Build architecture-independent files here. |
| 41 |
binary-indep: build install |
| 42 |
|
| 43 |
# Build architecture-dependent files here. |
| 44 |
binary-arch: build install |
| 45 |
dh_testdir |
| 46 |
dh_testroot |
| 47 |
dh_installdocs -n |
| 48 |
dh_installexamples |
| 49 |
dh_installchangelogs |
| 50 |
dh_strip |
| 51 |
dh_compress |
| 52 |
dh_fixperms |
| 53 |
dh_installdeb |
| 54 |
dh_perl |
| 55 |
dh_shlibdeps |
| 56 |
dh_gencontrol |
| 57 |
dh_md5sums |
| 58 |
dh_builddeb |
| 59 |
|
| 60 |
|
| 61 |
binary: binary-indep binary-arch |
| 62 |
.PHONY: build clean binary-indep binary-arch binary install build-arch build-indep |