1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58
|
#! /usr/bin/make -f
#
# debian/rules for tcpdump
# Copyright (C) 1999 Torsten Landschoff <torsten@debian.org>
# Parts taken from example rules files of debhelper documentation
# by Joey Hess <joeyh@debian.org>.
dstdir := $(shell pwd)/debian/tmp
configure: configure-stamp
configure-stamp:
dh_testdir
./configure --prefix=/usr
touch configure-stamp
build: build-stamp
build-stamp: configure
dh_testdir
make
touch build-stamp
install: install-stamp
install-stamp: build
dh_testdir
dh_testroot
dh_clean
dh_installdirs
make prefix=$(dstdir)/usr MANDEST=$(dstdir)/usr/share/man install
install -m 644 tcpdump.1 $(dstdir)/usr/share/man/man8/tcpdump.8
touch install-stamp
clean:
dh_testdir
dh_testroot
-rm -f configure-stamp build-stamp install-stamp
-make distclean
dh_clean
binary-arch: install
dh_testdir
dh_testroot
dh_installdocs
dh_installexamples
dh_installmenu
dh_installchangelogs CHANGES
dh_link
dh_strip
dh_compress
dh_fixperms
dh_installdeb
dh_shlibdeps
dh_gencontrol
dh_md5sums
dh_builddeb
binary: binary-indep binary-arch
.PHONY: binary binary-arch binary-indep clean
|