File: rules

package info (click to toggle)
inventor 2.1.6%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 33,676 kB
  • sloc: ansic: 34,082; lisp: 7,361; cpp: 3,874; yacc: 369; sh: 343; perl: 234; awk: 141; csh: 35; makefile: 17; sed: 11
file content (34 lines) | stat: -rwxr-xr-x 924 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
#!/usr/bin/make -f

# Sadly, the program "ivman" used to generate manual pages
# is broken on several architectures.  It looks to me like
# there are assumptions being made about the form of mangled
# identifiers, or maybe some bad assumptions being broken on 64-bit
# architectures.  Whatever.
#
# The man pages are therefore only generated on certain architectures,
# but since it is an architecture "all" package, we only have to
# ensure that the uploader builds on a favoured architecture, e.g.
# i386.
#
export BUILDMAN=OFF
ifeq (64,$(DEB_BUILD_ARCH_BITS))
export BUILDMAN=ON
endif


%:
	dh $@ --buildsystem=cmake

override_dh_auto_configure:
	dh_auto_configure --buildsystem=cmake -- \
		-DCMAKE_SKIP_INSTALL_RPATH=ON \
		-DINVENTOR_MAN=$(BUILDMAN) \
		-DINVENTOR_NODES=OFF

override_dh_install:
ifeq (OFF,$(BUILDMAN))
	mkdir -p debian/tmp/usr/share/man/man1
	mkdir -p debian/tmp/usr/share/man/man3
endif
	dh_install