File: rules

package info (click to toggle)
frogatto 1.3.1%2Bdfsg-2
  • links: PTS, VCS
  • area: contrib
  • in suites: jessie, jessie-kfreebsd
  • size: 3,764 kB
  • ctags: 9,602
  • sloc: cpp: 74,679; objc: 526; ansic: 375; sh: 79; makefile: 68
file content (39 lines) | stat: -rwxr-xr-x 906 bytes parent folder | download | duplicates (4)
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
#!/usr/bin/make -f

include /usr/share/cdbs/1/rules/debhelper.mk

export CXXFLAGS=$(shell dpkg-buildflags --get CXXFLAGS)
export CPPFLAGS=$(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS=$(shell dpkg-buildflags --get LDFLAGS)

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

UPSTREAM_CLEAN_VERSION	:= $(shell echo $(PACKAGE_VERSION) | sed 's/[+-].*//' )

DEB_DH_GENCONTROL_ARGS	= -- -VUVersion=$(UPSTREAM_CLEAN_VERSION)

DEB_BUILD_PARALLEL = 1

clean::
	find -name \*.o -delete
	find -name \*.mo -delete
	find -name \*.d -delete
	rm -f game frogatto.6

build/frogatto:: frogatto.6
	make USE_CCACHE=no

frogatto.6: debian/frogatto.pod
	pod2man --section=6 $< > $@

tarball:
	cd .. && tar \
		--exclude=debian \
		--exclude=.git \
		-czvf frogatto_$(PACKAGE_VERSION).orig.tar.gz \
		frogatto-$(PACKAGE_VERSION)