rules 1.09 KB
Newer Older
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
#!/usr/bin/make -f
# debian/rules for tree-puzzle using cdbs
# Andreas Tille <tille@debian.org>, GPL

pkg:=tree-puzzle
ppkg:=tree-ppuzzle

DEB_COMPRESS_EXCLUDE := .pdf .phy trees .b

## unfortunately this does not work :-(
# DEB_DH_INSTALLEXAMPLES_ARGS = --exclude Makefile*
## ... use regexp in tree-puzzle-doc.examples

include /usr/share/cdbs/1/rules/simple-patchsys.mk
include /usr/share/cdbs/1/rules/debhelper.mk
include /usr/share/cdbs/1/class/gnome.mk

clean::
	## Work around a bug in the automake stuff of the upstream author ...
	## src/sprng is not cleaned completely
	# -cd src/sprng; $(MAKE) clean
	## This worked formerly but once this is reached there is no
	## Makefile anymore in place so ...
	rm -f src/sprng/*.o

install/tree-puzzle::
	# The binary has to be renamed because of the generic name
#	cp -a src/puzzle `pwd`/debian/`dh_listpackages`/usr/bin/tree-puzzle
	mv `pwd`/debian/tmp/usr/bin/puzzle `pwd`/debian/$(pkg)/usr/bin/$(pkg)

install/tree-ppuzzle::
	# The binary has to be renamed because of the generic name
	mv `pwd`/debian/tmp/usr/bin/ppuzzle `pwd`/debian/$(ppkg)/usr/bin/$(ppkg)