File: rules

package info (click to toggle)
qwt5 5.2.3-1
  • links: PTS
  • area: main
  • in suites: buster, jessie, jessie-kfreebsd, stretch
  • size: 12,640 kB
  • ctags: 11,024
  • sloc: cpp: 32,660; makefile: 26; sh: 4
file content (41 lines) | stat: -rwxr-xr-x 979 bytes parent folder | download
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
#!/usr/bin/make -f

export DEB_BUILD_HARDENING=1
DPKG_EXPORT_BUILDFLAGS = 1
include /usr/share/dpkg/buildflags.mk

QMAKE_AFTER = -after \
	      'QMAKE_CXXFLAGS_RELEASE = $(CXXFLAGS)' \
	      'QMAKE_POST_LINK ~= s/strip/:'

%:
	dh $@

override_dh_auto_configure:
	qmake qwt.pro

#override_dh_auto_build:
#	$(MAKE)

override_dh_auto_clean:
	rm -f designer/plugins/designer/libqwt_designer_plugin.so
	[ ! -f Makefile ] || $(MAKE) distclean

override_dh_auto_install:
	$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
	$(MAKE) INSTALL_ROOT=$(CURDIR)/debian/tmp install
	mkdir $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)
	mv $(CURDIR)/debian/tmp/usr/lib/qt4 $(CURDIR)/debian/tmp/usr/lib/$(DEB_HOST_MULTIARCH)

override_dh_installchangelogs:
	dh_installchangelogs CHANGES

override_dh_installdocs:
	dh_installdocs README

override_dh_install:
	dh_install --list-missing --exclude=qwtlicense.3

override_dh_compress:
	dh_compress --exclude=.cpp --exclude=.pri --exclude=.xpm