-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
76 lines (58 loc) · 1.91 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
.PHONY: html html-nohighlight test help
html: bigpage
perl6 htmlify.p6 --parallel=1
html-nohighlight:
perl6 htmlify.p6 --no-highlight
sparse:
perl6 htmlify.p6 --no-highlight --sparse=10
webdev-build:
perl6 htmlify.p6 --no-highlight --sparse=200
bigpage:
pod2onepage --threads=1 -v --source-path=./doc --exclude=404.pod6,/.git,/precompiled > html/perl6.xhtml
# Common tests that are run by travis with every commit
test:
prove --exec perl6 -r t
# Extended tests
xtest:
prove --exec perl6 -r xt t
# Content tests
ctest:
prove --exec perl6 -r t/tabs.t xt/perl-nbsp.t xt/trailing-whitespace.t
help:
@echo "Usage: make [html|html-nohighlight|test|xtest|ctest]"
@echo ""
@echo "Options:"
@echo " html: generate the HTML documentation"
@echo " html-nohighlight: generate HTML documentation without syntax highlighting"
@echo " sparse: generate HTML documention, but only every 10th file"
@echo "webdev-build: generate only a few HTML files (useful for testing website changes)"
@echo "bigpage: generate HTML documentation in one large file (html/perl6.xhtml)"
@echo " test: run the test suite"
@echo " xtest: run the test suite, including extra tests"
@echo " ctest: run the test suite, content tests only"
@echo " run: run the development webserver"
run:
@echo "Starting local server…"
perl app.pl daemon
clean-html:
rm -rf html/*.html html/.*.html \
html/language/ \
html/op/ \
html/programs/ \
html/routine/ \
html/syntax/ \
html/type/ \
$(NULL)
clean-examples:
rm -fr examples/*
clean-images:
rm -f html/images/type-graph*
clean-search:
rm -f html/js/search.js
clean: clean-html clean-images clean-search clean-examples
test-links: html/links.txt
./util/test-links.sh
extract-examples:
./util/extract-examples.p6 --source-path=./doc/ --prefix=./examples/
push: test
git pull --rebase && git push