2013-11-26 17:44:44 +01:00
|
|
|
#!/usr/bin/make -f
|
2014-06-30 16:20:49 +02:00
|
|
|
|
|
|
|
# Uncomment this to turn on verbose mode.
|
|
|
|
#export DH_VERBOSE=1
|
|
|
|
|
2014-02-05 13:39:32 +01:00
|
|
|
APPNAME := Valentina
|
2013-11-26 17:44:44 +01:00
|
|
|
builddir:
|
2014-06-30 16:20:49 +02:00
|
|
|
mkdir -p builddir
|
2013-11-26 17:44:44 +01:00
|
|
|
|
|
|
|
builddir/Makefile: builddir
|
2014-06-30 16:20:49 +02:00
|
|
|
cd builddir && qmake PREFIX=/usr ../$(APPNAME).pro -r
|
2013-11-26 17:44:44 +01:00
|
|
|
build: build-stamp
|
|
|
|
build-stamp: builddir/Makefile
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_testdir
|
|
|
|
# Add here commands to compile the package.
|
|
|
|
cd builddir && $(MAKE)
|
|
|
|
touch $@
|
2013-11-26 17:44:44 +01:00
|
|
|
clean:
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
rm -f build-stamp
|
|
|
|
# Add here commands to clean up after the build process.
|
|
|
|
rm -rf builddir
|
|
|
|
dh_clean
|
2013-11-26 17:44:44 +01:00
|
|
|
install: build
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_prep
|
|
|
|
dh_installdirs
|
|
|
|
# Add here commands to install the package into debian/valentina
|
|
|
|
cd builddir && $(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
|
2013-11-26 17:44:44 +01:00
|
|
|
# Build architecture-independent files here.
|
|
|
|
binary-indep: build install
|
|
|
|
# We have nothing to do by default.
|
|
|
|
# Build architecture-dependent files here.
|
|
|
|
binary-arch: build install
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_testdir
|
|
|
|
dh_testroot
|
|
|
|
dh_installchangelogs
|
2014-08-11 20:27:38 +02:00
|
|
|
dh_installdocs
|
|
|
|
dh_installmenu
|
|
|
|
dh_installmime
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_install --sourcedir=$(CURDIR) -v
|
|
|
|
dh_installman
|
2014-08-11 20:27:38 +02:00
|
|
|
dh_installinfo
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_link
|
|
|
|
dh_compress
|
|
|
|
dh_fixperms
|
2014-08-11 20:27:38 +02:00
|
|
|
dh_makeshlibs
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_installdeb
|
2014-08-11 20:27:38 +02:00
|
|
|
dh_shlibdeps -Llibqmuparser2 -l$(CURDIR)/debian/tmp/usr/lib
|
2014-06-30 16:20:49 +02:00
|
|
|
dh_gencontrol
|
|
|
|
dh_md5sums
|
|
|
|
dh_builddeb
|
2013-11-26 17:44:44 +01:00
|
|
|
binary: binary-indep binary-arch
|
|
|
|
.PHONY: build clean binary-indep binary-arch binary install configure
|