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 34 35 36 37 38 39
|
#!/usr/bin/make -f
# -*- makefile -*-
#export DH_VERBOSE=1
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
build: build-stamp
build-stamp:
dh build --before dh_auto_build
cd src && qmake-qt4 QMAKE_CXXFLAGS="$(CFLAGS)" && lrelease-qt4 nlkt.pro && $(MAKE) PATH_CFG=-DNLKT_USE_SYSTEM_PATH release
dh build --after dh_auto_build
clean:
[ ! -f src/Makefile ] || $(MAKE) -C src distclean
rm -f src/nlkt share/translations/*.qm
dh clean
install: build
dh install --before dh_auto_install
$(MAKE) -C src INSTALL_ROOT=$(CURDIR)/debian/nlkt release-install
rm -f $(CURDIR)/debian/nlkt/usr/share/nlkt/translations/*.ts
dh install --after dh_auto_install
# Build architecture-independent files here.
binary-indep:
# do nothing
# Build architecture-dependent files here.
binary-arch: build install
dh binary-arch --before dh_shlibdeps
dh_shlibdeps -- --warnings=1
dh binary-arch --after dh_shlibdeps
binary: binary-indep binary-arch
.PHONY: build clean binary-indep binary-arch binary install
|