File: rules

package info (click to toggle)
vmatch 2.3.1%2Bdfsg-9
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 17,108 kB
  • sloc: ansic: 70,897; sh: 7,139; perl: 4,152; makefile: 1,181; xml: 642; awk: 563; ruby: 306; haskell: 288; sed: 60
file content (40 lines) | stat: -rwxr-xr-x 1,077 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
#!/usr/bin/make -f

DH_VERBOSE := 1
export LC_ALL=C.UTF-8
export DEB_BUILD_MAINT_OPTIONS=hardening=+all
export PATH:=$(PATH):$(CURDIR)/src/bin
export WORKVSTREESRC=$(CURDIR)/src

%:
	dh $@

override_dh_auto_clean:
	cd src && make cleanup
	test ! -e src/Vmatch/SELECT/Shareddef || (cd src/Vmatch/SELECT && make clean)
	test ! -e src/Makedef || (cd src/Mkvtree && make clean)
	find $(CURDIR) -name "*.x" -delete
	find $(CURDIR) -name "*.d" -delete
	find $(CURDIR) -name "*.so" -delete
	rm -rf debian/man \
	       src/Makedef-debian \
		   src/dist \
		   src/Vmatch/SELECT/Shareddef \
		   src/include/vmrelease.h \
		   src/Makedef \
		   src/Vmatch/virtualexp.h

override_dh_auto_build:
	cp debian/Makedef-debian src/Makedef-debian
	cd src && mklink.sh debian
	cd src && make licensemanager=no $*

override_dh_auto_install:
	cd src && make licensemanager=no dist
	dh_auto_install

override_dh_installman:
	mkdir -p $(CURDIR)/debian/man
	asciidoctor -a docdate='' -b manpage $(CURDIR)/debian/mansrc/*.adoc
	mv $(CURDIR)/debian/mansrc/*.? $(CURDIR)/debian/man
	dh_installman --