forked from Raku/examples
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
50 lines (42 loc) · 1.07 KB
/
Copy pathMakefile
File metadata and controls
50 lines (42 loc) · 1.07 KB
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
.PHONY: html run-all test help
EXAMPLES_DEPS = \
URI \
Pod::To::HTML \
LWP::Simple \
Algorithm::Soundex \
DBIish \
File::Temp \
Text::VimColour \
HTTP::Easy \
Web::Request \
Term::ANSIColor \
Term::termios
html: install-deps
perl6 htmlify.pl
html-nohighlight: install-deps
perl6 htmlify.pl --no-highlight
run-all: install-deps
perl6 bin/run-examples.pl
web-server:
perl app.pl daemon
test: install-deps
prove --exec perl6 -r t
install-deps:
for dep in $(EXAMPLES_DEPS);\
do\
perl6 -e "use $$dep" 2> /dev/null;\
if [ $$? != 0 ];\
then\
${HOME}/.rakudobrew/bin/panda install $$dep;\
fi;\
done
help:
@echo "Usage: make [html|test]"
@echo ""
@echo "Options:"
@echo " html: generate the HTML documentation"
@echo " html-nohighlight: generate HTML without syntax highlighting"
@echo " run-all: run all examples"
@echo " test: test the supporting software"
@echo " web-server: display HTML on localhost:3000"
@echo " install-deps: install dependencies required for examples"