| 1 |
#!/usr/bin/make -f |
| 2 |
# Sample debian/rules that uses debhelper. GNU copyright 1997 by Joey Hess. |
| 3 |
# Copyright (C) 2004-2012 Anibal Monsalve Salazar <[email protected]> |
| 4 |
|
| 5 |
export DH_VERBOSE=1 |
| 6 |
|
| 7 |
#export DEB_BUILD_MAINT_OPTIONS = hardening=+all |
| 8 |
export DEB_CFLAGS_MAINT_APPEND = -I/usr/include/tirpc |
| 9 |
DPKG_EXPORT_BUILDFLAGS = 1 |
| 10 |
include /usr/share/dpkg/buildflags.mk |
| 11 |
|
| 12 |
configure: configure-stamp |
| 13 |
configure-stamp: |
| 14 |
dh_testdir |
| 15 |
dh_auto_configure |
| 16 |
touch configure-stamp |
| 17 |
|
| 18 |
build: build-arch build-indep |
| 19 |
build-arch: build-stamp |
| 20 |
build-indep: build-stamp |
| 21 |
build-stamp: configure-stamp |
| 22 |
dh_testdir |
| 23 |
$(MAKE) |
| 24 |
touch build-stamp |
| 25 |
|
| 26 |
clean: |
| 27 |
dh_testdir |
| 28 |
dh_testroot |
| 29 |
rm -f build-stamp install-stamp configure-stamp |
| 30 |
rm -fr CVS |
| 31 |
[ ! -f Makefile ] || $(MAKE) distclean |
| 32 |
dh_clean |
| 33 |
|
| 34 |
install: install-stamp |
| 35 |
install-stamp: build-stamp |
| 36 |
dh_testdir |
| 37 |
dh_testroot |
| 38 |
dh_prep |
| 39 |
dh_installdirs |
| 40 |
cp rpc.rstatd debian/rstatd/usr/sbin |
| 41 |
cp rstatd.8 debian/rstatd/usr/share/man/man8/rpc.rstatd.8 |
| 42 |
cp rup rsysinfo debian/rstat-client/usr/bin |
| 43 |
cp rup.1 rsysinfo.1 debian/rstat-client/usr/share/man/man1 |
| 44 |
touch install-stamp |
| 45 |
|
| 46 |
binary-indep: build install |
| 47 |
|
| 48 |
binary-arch: build install |
| 49 |
dh_testdir |
| 50 |
dh_testroot |
| 51 |
dh_installdocs |
| 52 |
dh_installexamples |
| 53 |
dh_installmenu |
| 54 |
dh_installcron |
| 55 |
dh_installchangelogs |
| 56 |
dh_link |
| 57 |
dh_strip |
| 58 |
dh_compress |
| 59 |
dh_fixperms |
| 60 |
dh_installdeb |
| 61 |
dh_shlibdeps |
| 62 |
dh_gencontrol |
| 63 |
dh_md5sums |
| 64 |
dh_builddeb |
| 65 |
|
| 66 |
source diff: |
| 67 |
@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false |
| 68 |
|
| 69 |
binary: binary-indep binary-arch |
| 70 |
.PHONY: build clean binary-indep binary-arch binary install configure |