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
|
2014-11-25 13:10:35 +01:00
|
|
|
|
|
|
|
DEB_HOST_ARCH := $(shell dpkg-architecture -qDEB_HOST_ARCH)
|
|
|
|
ifeq ($(DEB_HOST_ARCH),amd64)
|
2014-12-07 12:31:34 +01:00
|
|
|
LIBPATH:= /debian/tmp/usr/lib/x86_64-linux-gnu
|
|
|
|
PREFIX_LIB:= /usr/lib/x86_64-linux-gnu
|
2014-11-25 13:10:35 +01:00
|
|
|
else
|
2014-12-07 12:31:34 +01:00
|
|
|
LIBPATH:= /debian/tmp/usr/lib/i386-linux-gnu
|
|
|
|
PREFIX_LIB:= /usr/lib/i386-linux-gnu
|
2014-11-25 13:10:35 +01:00
|
|
|
endif
|
|
|
|
|
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
|
2021-05-14 10:07:54 +02:00
|
|
|
cd builddir && QT_SELECT=qt5 qmake PREFIX=/usr PREFIX_LIB=$(PREFIX_LIB) "CONFIG += noTests noRunPath no_ccache noDebugSymbols" ../$(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-11-25 13:10:35 +01:00
|
|
|
dh_shlibdeps -Llibqmuparser2 -l$(CURDIR)$(LIBPATH) -Llibvpropertyexplorer -l$(CURDIR)$(LIBPATH)
|
2014-09-21 14:35:29 +02:00
|
|
|
dh_shlibdeps
|
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
|