File: rules

package info (click to toggle)
sfront 0.99-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 10,232 kB
  • ctags: 7,117
  • sloc: ansic: 113,695; haskell: 2,230; makefile: 1,242; objc: 677; yacc: 325
file content (55 lines) | stat: -rwxr-xr-x 1,554 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
52
53
54
55
#!/usr/bin/make -f
# Sample debian/rules that uses debhelper.
# This file is public domain software, originally written by Joey Hess. 

CFLAGS := `dpkg-buildflags --get CFLAGS` -Wall
CPPFLAGS := `dpkg-buildflags --get CPPFLAGS`
LDFLAGS := `dpkg-buildflags --get LDFLAGS` -lm

build:
	cd src/lib && $(MAKE) CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
		LINKLIB="$(LDFLAGS)"
	cd src && $(MAKE) sfront CFLAGS="$(CFLAGS)" CPPFLAGS="$(CPPFLAGS)" \
		LINKLIB="$(LDFLAGS)"
	touch build

clean:
	rm -f build src/lib/libmaker.o src/lib/libmaker
	cd src && $(MAKE) cleanall
	dh_clean

binary-indep: build

binary-arch: build
	dh_prep
	dh_installdirs
	cd src && $(MAKE) install BINDIR=../debian/sfront/usr/bin
	cp -a lib/* debian/sfront/usr/share/sfront
	cp -a README.HTML index.html sfman book copyright \
		debian/sfront/usr/share/doc/sfront/html
	find debian/sfront/usr/bin -type f | xargs chmod 755
	find debian/sfront/usr/share -type f | xargs chmod 644
	find debian/sfront/usr/share -type d | xargs chmod 755
	dh_installchangelogs
	dh_installdocs
	dh_installexamples -Xrtime/au examples/*
	find debian/sfront -name "._*" | xargs rm -f
	dh_installman debian/sfront.1
	dh_link
	dh_strip
# Do not compress files referenced in the HTML manual or in example makefiles.
	dh_compress -XASYS -Xpsync.c -X.c -X.saol -X.sasl -X.wav -XFDL
	dh_fixperms
	dh_installdeb
	dh_shlibdeps
	dh_gencontrol
	dh_md5sums
	dh_builddeb

binary: binary-indep binary-arch

build-arch: build

build-indep: build

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