File: rules

package info (click to toggle)
imagevis3d 3.1.0-7
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 20,840 kB
  • sloc: cpp: 125,470; ansic: 83,889; sh: 959; python: 557; perl: 467; xml: 258; makefile: 115
file content (30 lines) | stat: -rwxr-xr-x 887 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
#!/usr/bin/make -f
#export DH_VERBOSE=1

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@

override_dh_auto_configure:
	dh_auto_configure -- QMAKE_CXXFLAGS="-fopenmp -DPACKAGE_MANAGER $(CXXFLAGS)" QMAKE_CFLAGS="-fopenmp $(CFLAGS)" QMAKE_LFLAGS="-fopenmp $(LDFLAGS)"

override_dh_clean:
	dh_clean Build/imagevis3d
	dh_clean Tuvok/Build/libTuvok.a
	# make sure to regen flex/bison stuff:
	dh_clean Tuvok/IO/expressions/tvk-scan.lexer.cpp
	# remove qt generated stuff
	dh_clean ImageVis3D/UI/AutoGen/*

override_dh_install:
	# rename to match man page:
	cp -a Build/ImageVis3D Build/imagevis3d 
	dh_install Build/imagevis3d usr/bin
	dh_install CmdLineConverter/Build/uvfconvert usr/bin
	dh_install Tuvok/Shaders/* usr/share/imagevis3d/shaders
	dh_install # qmake install rules do nothing ??

override_dh_installman:
	dh_installman doc/imagevis3d.1
	dh_installman doc/uvfconvert.1