File: rules

package info (click to toggle)
autopilot 1.21-1
  • links: PTS
  • area: main
  • in suites: sarge, woody
  • size: 84 kB
  • ctags: 23
  • sloc: ansic: 88; makefile: 59; sh: 12
file content (51 lines) | stat: -rwxr-xr-x 1,614 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
45
46
47
48
49
50
51
#!/usr/bin/make -f

PACKAGE	:= autopilot

build: build-stamp
build-stamp: debian/control
	test -e debian/control
	$(MAKE) CFLAGS="-Wall -O2"
	touch build-stamp

clean: debian/control
	test -e debian/control
	test root = "`whoami`" || (echo need root priviledges; exit 1)
	rm -f build-stamp install-stamp
	$(MAKE) clean
	rm -rf debian/substvars debian/files debian/tmp

binary-indep: build

binary-arch: build debian/control
	test -e debian/control
	test root = "`whoami`" || (echo need root priviledges; exit 1)
	rm -rf debian/substvars debian/tmp
	install -d --mode=0755 \
		debian/tmp/usr/bin \
		debian/tmp/usr/share/man/man1
	install -m0755 autopilot debian/tmp/usr/bin/
	install -m0644 autopilot.1 debian/tmp/usr/share/man/man1/
	install -d --mode=0755 "debian/tmp/usr/share/doc/$(PACKAGE)"
	install --mode=0644 debian/copyright README \
		"debian/tmp/usr/share/doc/$(PACKAGE)"
	gzip -9 debian/tmp/usr/share/man/man1/*
	install --mode=0644 ChangeLog \
		"debian/tmp/usr/share/doc/$(PACKAGE)/changelog"
	install --mode=0644 debian/changelog \
		"debian/tmp/usr/share/doc/$(PACKAGE)/changelog.Debian"
	gzip -9 debian/tmp/usr/share/doc/"$(PACKAGE)"/changelog*
	strip --remove-section=.comment --remove-section=.note \
		debian/tmp/usr/bin/*
	install -d --mode=0755 debian/tmp/DEBIAN
	install --mode=0755 debian/postinst debian/prerm \
		debian/tmp/DEBIAN
	dpkg-shlibdeps debian/tmp/usr/bin/*
	dpkg-gencontrol -isp
	dpkg --build debian/tmp ..

source diff:
	@echo >&2 'source and diff are obsolete - use dpkg-source -b'; false

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