File: rules

package info (click to toggle)
sniffit 0.3.7.beta-15
  • links: PTS
  • area: main
  • in suites: squeeze
  • size: 1,096 kB
  • ctags: 1,421
  • sloc: ansic: 11,592; sh: 2,296; yacc: 234; lex: 203; makefile: 162
file content (30 lines) | stat: -rwxr-xr-x 655 bytes parent folder | download
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
#!/usr/bin/make -f
include /usr/share/dpatch/dpatch.make

build: build-stamp
build-stamp: patch-stamp 
	dh build --before configure
	cp /usr/share/misc/config.guess .
	cp /usr/share/misc/config.sub .
	./configure --prefix=/usr --no-recursion
	$(MAKE) OBJ_OPT="" EXE_OPT="-lpcap"
	dh build --after build

clean: unpatch
	dh clean
	rm -f config.sub config.guess

install: build
	dh install --before dh_auto_install
	dh_install sniffit usr/sbin
	dh_installman sniffit.5 sniffit.8
	dh_installchangelogs HISTORY
	dh install --after dh_auto_install

binary-arch: install
	dh binary-arch

binary-indep: install
	dh binary-indep

binary: binary-arch binary-indep