File: rules

package info (click to toggle)
tetgen 1.5.0-4
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 1,568 kB
  • ctags: 978
  • sloc: cpp: 28,466; sh: 94; makefile: 34
file content (27 lines) | stat: -rwxr-xr-x 879 bytes parent folder | download | duplicates (2)
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
#!/usr/bin/make -f
BUILDDIR=debian/build

TETGEN_VERSION = 1.5.0
TETGEN_LIBVERSION = 1.5

export DEB_CFLAGS_MAINT_APPEND  = -Wall -pedantic
export DEB_LDFLAGS_MAINT_APPEND = -Wl,--as-needed
export DEB_HOST_MULTIARCH := $(shell dpkg-architecture -qDEB_HOST_MULTIARCH)

%:
	dh $@ --buildsystem=cmake --builddirectory=$(BUILDDIR) --parallel

override_dh_auto_build:
	dh_auto_build
	docbook-to-man debian/tetgen.sgml > tetgen.1

override_dh_auto_test:
	$(BUILDDIR)/tetgen -p example.poly

get-orig-source:
	uscan --force-download --rename --verbose --upstream-version $(TETGEN_VERSION)
	tar xzf ../tetgen_$(TETGEN_VERSION).orig.tar.gz
	mv tetgen$(TETGEN_VERSION) tetgen-$(TETGEN_VERSION)
	tar czf tetgen_$(TETGEN_VERSION).orig.tar.gz tetgen-$(TETGEN_VERSION)
	rm -rf tetgen-$(TETGEN_VERSION).dfsg
	if test -d ../tarballs; then mv tetgen_$(TETGEN_VERSION).orig.tar.gz ../tarballs; fi