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_INSTALL_PREFIX
:PATH
=/usr \
31 -DQT_QMAKE_EXECUTABLE
:FILEPATH
=/usr
/bin
/qmake-qt4 ..
35 build
: build-arch build-indep
37 build-arch
: build-stamp
38 build-stamp
: BUILD
/CMakeCache.txt
56 install: SHELL
=/bin
/bash
62 $(MAKE
) -C BUILD DESTDIR
=$(CURDIR
)/debian
/tmp
install
63 cd debian
/tmp
&& mv usr
/bin usr
/games
66 test -z
"$$(find debian/tmp ! -type d | tee >(cat >&2))"
70 # Must not depend on anything. This is to be called by
71 # binary-arch/binary-indep
72 # in another 'make' thread.
76 dh_installchangelogs CHANGELOG
93 dh_gencontrol
-u
'-v$(GITVERSION)'
97 # Build architecture independant packages using the common target.
98 binary-indep
: build-indep
install
99 $(MAKE
) -f debian
/rules DH_OPTIONS
=-i binary-common
101 # Build architecture dependant packages using the common target.
102 binary-arch
: build-arch
install
103 $(MAKE
) -f debian
/rules DH_OPTIONS
=-s binary-common
105 binary
: binary-arch binary-indep
106 .PHONY
: build
clean binary-indep binary-arch binary
install configure