File: rules

package info (click to toggle)
iproute 20041019-3
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 1,556 kB
  • ctags: 2,578
  • sloc: ansic: 23,116; sh: 1,680; cpp: 602; yacc: 251; makefile: 224; perl: 101
file content (44 lines) | stat: -rwxr-xr-x 768 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
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#!/usr/bin/make -f

# created by Andreas Barth <aba@not.so.argh.org> 2004

build: build-arch

include /usr/share/dpatch/dpatch.make

clean: clean-patched unpatch
clean-patched:
	-rm stamp-build
	dh_testdir
	dh_testroot
	dh_clean
	make clean

binary: binary-indep binary-arch

binary-indep build-indep:

binary-arch: build-arch
	dh_testdir
	dh_testroot
	dh_install --fail-missing
	dh_installexamples examples/*
	dh_installman
	dh_installdocs
	dh_installchangelogs
	ln -s /bin/ip debian/iproute/sbin/ip
	dh_compress
	dh_strip
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_builddeb

build-arch: stamp-build
stamp-build: patch
	$(MAKE) KERNEL_INCLUDE=./include
	$(MAKE) -C doc all txt
	touch stamp-build

.PHONY: build binary binary-arch binary-indep clean