File: rules

package info (click to toggle)
exonerate 2.4.0-4
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster, sid
  • size: 3,920 kB
  • sloc: ansic: 42,399; sh: 3,270; makefile: 865
file content (40 lines) | stat: -rwxr-xr-x 944 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
# -*- makefile -*-
# debian/rules file for exonerate
# Andreas Tille <tille@debian.org>
# GPL

export DEB_BUILD_MAINT_OPTIONS = hardening=+all

pkgdata:=exonerate
sampledir:=$(CURDIR)/debian/$(pkgdata)/usr/share/doc/$(pkgdata)/examples

%:
	dh $@

override_dh_autoreconf:
	dh_autoreconf --as-needed

override_dh_auto_clean:
	dh_auto_clean
	rm -rf codegen

override_dh_auto_test:
ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
	$(MAKE) -C test check
endif

override_dh_installchangelogs:
	dh_installchangelogs -k ChangeLog

override_dh_installexamples:
	dh_installexamples
	mkdir -p $(sampledir);
	cp -a test/* $(sampledir)/;
	find $(sampledir) \( -name "Makefile*" -o -name "*.log" -o -name "*.trs" \) -exec rm \{\} \;
	for testfile in `find $(sampledir) -name "*.sh"` ; do \
		sed -i -e "s#../../src/util/#/usr/bin/#" \
			   -e "s#../../src/program/#/usr/bin/#" \
			   -e "s#../data/#./data/#" \
			$${testfile} ; \
	done