~timo-jyrinki/+junk/qtpurhasing-packaging

« back to all changes in this revision

Viewing changes to debian/rules

  • Committer: Timo Jyrinki
  • Date: 2015-09-01 12:59:24 UTC
  • Revision ID: timo.jyrinki@canonical.com-20150901125924-2e83rz7v6um54qfa
Qt Purchasing temporary hack packaging.

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#!/usr/bin/make -f
 
2
 
 
3
# Uncomment this to turn on verbose mode.
 
4
#export DH_VERBOSE=1
 
5
 
 
6
export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
 
7
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
 
8
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed
 
9
export QT_SELECT := qt5
 
10
 
 
11
%:
 
12
        dh $@ --fail-missing --parallel --with pkgkde_symbolshelper 
 
13
 
 
14
override_dh_auto_configure:
 
15
        # Now call qmake
 
16
        mkdir .git
 
17
        qmake
 
18
 
 
19
override_dh_auto_build-indep:
 
20
        dh_auto_build -Smakefile -- docs
 
21
 
 
22
override_dh_auto_install-arch:
 
23
        dh_auto_install
 
24
 
 
25
        # Remove libtool-like files
 
26
        rm -fv debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)/*.la
 
27
 
 
28
override_dh_auto_install-indep:
 
29
        make INSTALL_ROOT=$(CURDIR)/debian/tmp install_docs