3 # Sample debian/rules that uses debhelper.
5 # This file was originally written by Joey Hess and Craig Small.
6 # As a special exception, when this file is copied by dh-make into a
7 # dh-make output file, you may use that output file without restriction.
8 # This special exception was added by Craig Small in version 0.37 of dh-make.
10 # Modified to make a template file for a multi-binary package with separated
11 # build-arch and build-indep targets by Bill Allombert 2001
13 # Uncomment this to turn on verbose mode.
16 # This has to be exported to make some magic below work.
19 # drop leading "v", replace the 1st hyphen with a ~ to sort lower than 1.0
20 # use debian revision 0 to sort lower than an official package
21 GITVERSION
=$(shell git describe | sed
-e s
/^v
// -e s
/-/~
/)-0
23 configure
: BUILD
/CMakeCache.txt
26 rm -rf CMakeCache.txt BUILD
30 -DCMAKE_BUILD_TYPE
:STRING
=debugfull \
31 -DCMAKE_INSTALL_PREFIX
:PATH
=/usr \
32 -DQT_QMAKE_EXECUTABLE
:FILEPATH
=/usr
/bin
/qmake-qt4 ..
36 build
: build-arch build-indep
38 build-arch
: build-stamp
39 build-stamp
: BUILD
/CMakeCache.txt
57 install: SHELL
=/bin
/bash
63 $(MAKE
) -C BUILD DESTDIR
=$(CURDIR
)/debian
/tmp
install
64 cd debian
/tmp
&& mv usr
/bin usr
/games
67 test -z
"$$(find debian/tmp ! -type d | tee >(cat >&2))"
71 # Must not depend on anything. This is to be called by
72 # binary-arch/binary-indep
73 # in another 'make' thread.
77 dh_installchangelogs CHANGELOG
87 dh_strip
--dbg-package
=tagua-dbg
94 dh_gencontrol
-u
'-v$(GITVERSION)'
98 # Build architecture independant packages using the common target.
99 binary-indep
: build-indep
install
100 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
102 # Build architecture dependant packages using the common target.
103 binary-arch
: build-arch
install
104 $(MAKE
) -f debian
/rules DH_OPTIONS
=-s binary-common
106 binary
: binary-arch binary-indep
107 .PHONY
: build
clean binary-indep binary-arch binary
install configure