-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
31 lines (26 loc) · 785 Bytes
/
Makefile
File metadata and controls
31 lines (26 loc) · 785 Bytes
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
.PHONY: test
test:
@swipl -g "load_files([tests/test_pa]), run_tests" -t halt
.PHONY: testc
testc:
@swipl -g "load_files([tests/test_pa]), \
coverage(run_tests, [files([prolog/plunit_assert.pl])])" -t halt
.PHONY: docserver
docserver:
@swipl -g "load_files([docs])"
.PHONY: docs
docs:
swipl -g "load_files(plunit_assert), doc_save(., \
[format(html), doc_root('./docs'), \
title('API Documentation for plunit_assert')])" -t halt
.PHONY: pack
pack: clean
# remember to bump version number
mkdir -p plunit_assert/prolog
cp plunit_assert.pl plunit_assert/prolog/
cp pack.pl.dist plunit_assert/pack.pl
COPYFILE_DISABLE=1 tar --format=ustar --exclude='._*' -czf plunit_assert-0.2.1.tgz plunit_assert
.PHONY: clean
clean:
rm -f plunit_assert*.tgz
rm -rf plunit_assert/