File: rules

package info (click to toggle)
eye 20.1027.2307~ds-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, sid
  • size: 16,180 kB
  • sloc: perl: 9,918; sh: 174; makefile: 16
file content (26 lines) | stat: -rwxr-xr-x 737 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
#!/usr/bin/make -f

PROLOG_ABI = $(shell swipl --abi_version | sed 's/^swipl-abi-//')

cmd = eye.pvm

# generate manpage with help2man from --help option of executable
_mkman = help2man $(if $3,--name "$(strip $3)") --no-info --no-discard-stderr --output $2 $1 \
 || { $1 --help; false; }

override_dh_auto_build:
	swipl -q -f eye.pl -g main -- --image $(cmd)
	$(call _mkman, ./$(cmd), debian/$(cmd).1, \
		Euler Yet another proof Engine (EYE) semantic web reasoning engine)

# fix hashbang
override_dh_installexamples:
	dh_installexamples
	find debian/*/usr/share/doc/*/examples -type f -name test -print0 | \
		xargs -r0 sed -i -e '2s|^eye |eye.pvm |'

override_dh_gencontrol:
	dh_gencontrol -- -V"prolog:ABI=$(PROLOG_ABI)"

%:
	dh $@