File: rules

package info (click to toggle)
confetti 20120731-1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 264 kB
  • ctags: 183
  • sloc: ansic: 2,404; lex: 568; yacc: 539; makefile: 123; perl: 13
file content (29 lines) | stat: -rwxr-xr-x 688 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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

package	 := $(shell dpkg-parsechangelog|grep ^Source  | awk '{print $$2}')
version	 := $(shell dpkg-parsechangelog|grep ^Version | awk '{print $$2}')
uversion := $(shell echo $(version)|sed 's/-[[:digit:]]\+$$//')



build/confetti::
	make
	make test
	pod2man --section=1 \
		--center='configuration file parser generator' \
		--name=confetti \
		debian/confetti.pod > confetti.1

clean::
	make clean
	rm -f confetti.1

tarball: clean
	cd .. && tar \
		--exclude=.git \
		--exclude=debian \
		-czvf $(package)_$(uversion).orig.tar.gz $(package)-$(uversion)