forked from fglock/Perlito
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
44 lines (27 loc) · 1.22 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
# default actions
all : build-5to5 build-5js build-5browser
test-all : test-5to5 test-5js
test : test-5js
boot-all : boot-5to5 boot-5js build-5browser
# more
minify ::
jsmin < html/perlito5.js > html/perlito5m.js
build-5to5 ::
perl perlito5.pl -Isrc5/lib -Cperl5 src5/util/perlito5.pl > perlito5-new.pl && cp perlito5-new.pl perlito5.pl
build-5js ::
perl perlito5.pl -I./src5/lib -Cjs src5/util/perlito5.pl > perlito5.js
build-5browser ::
perl perlito5.pl -I./src5/lib -Cjs src5/util/perlito5-browser.pl > html/perlito5.js
build-5js3 ::
perl perlito5.pl -I./src5/lib -Cjs3 src5/util/perlito5.pl > perlito5.js
boot-5js ::
time node perlito5.js -Isrc5/lib -Cjs src5/util/perlito5.pl > perlito5-new.js && diff perlito5-new.js perlito5.js ; cp perlito5-new.js perlito5.js
test-5js ::
prove -r -e 'node perlito5.js -I./src5/lib' t5
boot-5to5 ::
time perl perlito5.pl -Isrc5/lib -Cperl5 src5/util/perlito5.pl > perlito5-new.pl && diff perlito5-new.pl perlito5.pl ; cp perlito5-new.pl perlito5.pl
test-5to5 ::
prove -r -e 'perl perlito5.pl -I./src5/lib ' t5
test-5to6 ::
-find t5/*/*.t | perl -ne ' chomp; print "*** perl6 $$_.p6$$/"; chomp; print `perl -Ilib5 perlito5.pl -Cperl6 $$_ > $$_.p6 && perl6 $$_.p6 `'
.PHONY: test-5to6