[go: up one dir, main page]

File: rules

package info (click to toggle)
circlepack 5.1-3
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, lenny, sarge
  • size: 2,828 kB
  • ctags: 1,683
  • sloc: ansic: 43,152; makefile: 46
file content (60 lines) | stat: -rwxr-xr-x 1,299 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
56
57
58
59
60
#!/usr/bin/make -f
# Debian build rules
# Made with the aid of debhelper, by Joey Hess,
# based on the sample debian/rules file for GNU hello by Ian Jackson.
 
export DH_COMPAT=2

package=circlepack

ddir=`pwd`/debian/$(package)
CC := gcc

ifeq (,$(findstring noopt,$(DEB_BUILD_OPTIONS)))
DEBUG := -O2 -g
else
DEBUG := -g
endif

build:
	dh_testdir
	$(MAKE) -C src -f makefile_cptree TREE_TOP=$(CURDIR) \
		CC=$(CC) DEBUG="$(DEBUG)" CirclePack

clean:
	dh_testdir
	dh_testroot
	-rm -f build
	-$(MAKE) -C src -f makefile_cptree remake
	-rm bin/CirclePack
	dh_clean

binary-indep:

binary-arch: build
	dh_testdir
	dh_testroot
	dh_clean -k
	dh_installdirs etc usr/bin usr/share/$(package)
	install -m 755 bin/CirclePack $(ddir)/usr/bin/circlepack
	install -m 644 doc/cp_help.info $(ddir)/usr/share/$(package)
	perl -pe 's,~/bin/cp_help.info,/usr/share/$(package)/cp_help.info,g' \
		src/.packrc > $(ddir)/etc/CPpackrc
	dh_installdocs doc/CP-bib.ps
	dh_installexamples demo/*
	dh_installman debian/circlepack.1
	dh_installchangelogs
	dh_link usr/share/$(package)/cp_help.info \
		usr/share/doc/$(package)/cp_help.info
	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