File: rules

package info (click to toggle)
mummy 1.0.3-2
  • links: PTS, VCS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 1,628 kB
  • ctags: 1,000
  • sloc: cpp: 10,667; cs: 1,107; makefile: 22; xml: 8; sh: 5
file content (41 lines) | stat: -rwxr-xr-x 1,129 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 DH_VERBOSE=1

CMAKE_FLAGS += \
	-DMummy_INSTALL_PREFIX:PATH=/usr \
	-DCMAKE_BUILD_TYPE:STRING=RelWithDebInfo \
	-DMUMMY_RUNTIME_UNMANAGED_INSTALL_LIB_DIR:STRING=lib/cli/Kitware.mummy.Runtime-1.0 \
	-DMummy_SNKEYFILE:STRING=/usr/share/cli-common/keys/mono.snk \
	-Dcsc_EXECUTABLE=/usr/bin/mono-csc

# B-D-I is still not quite right on buildd, but anyway let's be prepared:
#ifeq "" "$(filter %-doc,$(shell dh_listpackages))"
#  CMAKE_FLAGS += -DMummy_BUILD_DOCUMENTATION:BOOL=OFF
#else
#  CMAKE_FLAGS += -DMummy_BUILD_DOCUMENTATION:BOOL=ON
#endif

%:
	dh $@ --parallel --with cli

override_dh_auto_configure:
	dh_auto_configure -- $(CMAKE_FLAGS)

override_dh_installdocs:
	# doxgen create md5 file for bookkeeping do not install them:
	dh_installdocs -X.md5

override_dh_compress:
	# do not compress .map file for doxygen graph
	dh_compress -X.map

override_dh_cligacpolicy:
	cp /usr/share/cli-common/keys/mono.snk debian
	dh_cligacpolicy

debian/mummy.1: debian/mummy.1.in
	help2man --include=debian/mummy.1.in \
		--output=debian/mummy.1 --no-info mummy

get-orig-source:
	./debian/get-orig-source.sh