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 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107
|
#!/usr/bin/make -f
# Based on the initial work of Joey Hess and Craig Small.
# Uncomment this to turn on verbose mode.
export DH_VERBOSE=1
DEB_HOST_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_HOST_GNU_TYPE)
DEB_BUILD_GNU_TYPE ?= $(shell dpkg-architecture -qDEB_BUILD_GNU_TYPE)
PACKAGE=colorcode
ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
MAKEFLAGS += -j$(NUMJOBS)
endif
$(info "---------------------------------------")
$(info NUMJOBS: $(NUMJOBS))
$(info MAKEFLAGS: $(MAKEFLAGS))
$(info DEB_BUILD_OPTIONS: $(DEB_BUILD_OPTIONS))
$(info "---------------------------------------")
.PHONY: clean
clean:
dh_testdir
dh_testroot
dh_quilt_unpatch
[ ! -f Makefile ] || $(MAKE) distclean
dh_clean
configure-stamp:
dh_testdir
dh_quilt_patch
# Call the lrelease program to compile all translation files
# (trans_xx.ts) files into their corresponding trans_xx.qm binary
# files). We do this here, as we might need to ship an updated .ts
# file (text file) but we do not want to ship a binary .qm file. Note
# that lrelease is in libqt4-dev and we have to depend on that package
# anyways. So no overhead.
qtchooser -qt=qt5 -run-tool=qmake -o Makefile colorcode.pro
# Production of .qm file is required before the call to qmake.
qtchooser -qt=qt5 -run-tool=lrelease -compress colorcode.pro
touch configure-stamp
build-arch-stamp: configure-stamp
dh_testdir
dh_prep -a
$(MAKE)
touch build-arch-stamp
.PHONY: build-indep
build-indep:
.PHONY: build-arch
build-arch: build-arch-stamp
.PHONY: build
build: build-indep build-arch
# Build architecture-independent files here.
.PHONY: binary-indep
binary-indep:
# Build architecture-dependent files here.
.PHONY: binary-arch
binary-arch: build-arch-stamp
dh_testdir -a
dh_testroot -a
dh_installchangelogs -a
dh_installdocs -a
dh_install -a
dh_installmenu -a
dh_installman -a
dh_strip -a
dh_compress -a
dh_fixperms -a
dh_installdeb -a
dh_shlibdeps -a
dh_gencontrol -a
dh_md5sums -a
dh_builddeb -a
.PHONY: binary
binary: binary-indep binary-arch
|