File: rules

package info (click to toggle)
qwtplot3d 0.2.7%2Bsvn191%2Bgcc7-3
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye, buster, forky, sid, trixie
  • size: 1,360 kB
  • sloc: cpp: 8,913; ansic: 5,078; python: 95; makefile: 28; sh: 1
file content (40 lines) | stat: -rwxr-xr-x 1,478 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
#!/usr/bin/make -f

# Uncomment this to turn on verbose mode.
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS=hardening=+all

export CFLAGS := $(shell dpkg-buildflags --get CFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export CXXFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export CPPFLAGS := $(shell dpkg-buildflags --get CXXFLAGS) $(shell dpkg-buildflags --get CPPFLAGS)
export LDFLAGS := $(shell dpkg-buildflags --get LDFLAGS) -Wl,--as-needed

%:
	dh $@ --list-missing --with pkgkde_symbolshelper

override_dh_auto_configure:
	mkdir -p build-qt5
	cp -a doc build-qt5/
	QT_SELECT=qt5 dh_auto_configure --builddirectory=build-qt5 -- ../qwtplot3d.pro

override_dh_auto_build:
	dh_auto_build --builddirectory=build-qt5
	cd build-qt5/doc && doxygen Doxyfile.doxygen

override_dh_auto_clean:
	rm -rf build-qt5

override_dh_auto_install:
	mkdir -p debian/tmp/usr/include/qwtplot3d
	cp -a include/* debian/tmp/usr/include/qwtplot3d
	dh_auto_install --builddirectory=build-qt5
	mkdir -p debian/tmp/usr/include/qwtplot3d
	cp -a include/* debian/tmp/usr/include/qwtplot3d
	find debian/tmp/usr -type f -name '*.md5' -exec rm -vf {} \;
	find debian/tmp/usr -type f -name '*.js' -exec rm -vf {} \;
	mkdir -p debian/tmp/usr/share/doc/libqwtplot3d-doc/html
	cp -a build-qt5/doc/web/doxygen/* debian/tmp/usr/share/doc/libqwtplot3d-doc/html

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