File: rules

package info (click to toggle)
qtiplot 0.9.8.9-18
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 36,424 kB
  • sloc: cpp: 129,847; ansic: 5,781; python: 861; makefile: 60
file content (63 lines) | stat: -rwxr-xr-x 1,445 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
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
#!/usr/bin/make -f
# -*- makefile -*-

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

ifneq (,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    NUMJOBS = $(patsubst parallel=%,%,$(filter parallel=%,$(DEB_BUILD_OPTIONS)))
    MAKEFLAGS += -j$(NUMJOBS)
endif

%:
	dh $@ --with python2

override_dh_auto_configure:
	rm -f build.conf
	cp build.conf.example build.conf
	mkdir -p icons/48x48
	mkdir -p icons/128x128
	cp qtiplot_logo.png icons/128x128/qtiplot.png
	convert qtiplot_logo.png -resize 48x48 icons/48x48/qtiplot.png
	dh_auto_configure

override_dh_auto_install:

override_dh_python2:
	dh_python2
	dh_sip -pqtiplot

override_dh_auto_build-arch:
	$(MAKE)

override_dh_auto_build-indep:
	doxygen Doxyfile
	$(MAKE) -C manual -f Makefile all

override_dh_auto_clean:
	dh_auto_clean
	find -type f -name Makefile ! -path ./manual/Makefile -exec rm -f {} \;
	find -type f -name '*.qm' -exec rm -f {} \;
	rm -rf icons
	rm -f minigzip.c
	rm -f qtiplot/qtiplot
	rm -f manual/html/*.html
	rm -f manual/qtiplot-manual-en.pdf
	rm -f manual/html/qtiplot.adp
	rm -rf API
	rm -rf tmp
	rm -f qtiplot/translations/*.qm
	rm -rf 3rdparty/qwtplot3d/lib
	rm -rf 3rdparty/qwtplot3d/tmp
	rm -f build.conf
	rm -f 3rdparty/qwt/lib/libqwt.a

override_dh_install:
	dh_install -X.js

override_dh_compress:
	dh_compress --exclude=.pdf --exclude=.adp

override_dh_auto_test-indep:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	echo "Do not test for arch all build"
endif