-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
32 lines (22 loc) · 953 Bytes
/
Makefile
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
version:=$(shell swipl -q -s pack -g 'version(V),writeln(V)' -t halt)
packfile=rdet-$(version).tgz
[email protected]:/sites/packs.rlaanemets.com/public/rdet
all:
check:
install:
package: test
tar cvzf $(packfile) prolog tests pack.pl README.md LICENSE
test:
swipl -s tests/tests.pl -g run_tests,halt -t 'halt(1)'
benchmark-rdet:
swipl -s benchmark/benchmark-rdet.pl -g benchmark,halt -t 'halt(1)'
benchmark-rdet-opt:
swipl -O -s benchmark/benchmark-rdet.pl -g benchmark,halt -t 'halt(1)'
benchmark-vanilla:
swipl -s benchmark/benchmark-vanilla.pl -g benchmark,halt -t 'halt(1)'
benchmark-vanilla-opt:
swipl -O -s benchmark/benchmark-vanilla.pl -g benchmark,halt -t 'halt(1)'
benchmark: benchmark-rdet benchmark-vanilla benchmark-rdet-opt benchmark-vanilla-opt
upload: package
scp $(packfile) $(remote)/$(packfile)
.PHONY: test package upload benchmark-rdet benchmark-rdet-opt benchmark-vanilla benchmark-vanilla-opt benchmark