File: rules

package info (click to toggle)
zimpl 3.7.0%2Bds-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,772 kB
  • sloc: ansic: 21,719; yacc: 993; lex: 370; sh: 349; makefile: 278
file content (25 lines) | stat: -rwxr-xr-x 556 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
#!/usr/bin/make -f

include /usr/share/dpkg/architecture.mk # for DEB_HOST_GNU_TYPE

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

%:
	dh $@ --buildsystem=cmake

execute_after_dh_auto_build:
	$(MAKE) -C doc

LIBDIR = $(CURDIR)/obj-$(DEB_HOST_GNU_TYPE)/lib
BINDIR = ../obj-$(DEB_HOST_GNU_TYPE)/bin
override_dh_auto_test:
	cd check && LD_LIBRARY_PATH=$(LIBDIR) sh check.sh $(BINDIR)/zimpl

override_dh_installexamples:
	dh_installexamples example/*

override_dh_installman:
	dh_installman doc/zimpl.man

execute_after_dh_auto_clean:
	$(MAKE) -C doc clean