Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Newer
Older
100644 80 lines (67 sloc) 2.783 kb
99a7592 [STD et al.] rename .pm to .pm6 for all p6 modules in this dir
lwall authored
1 # Makefile for STD.pm6 viv etcetera in pugs/src/perl6
10d5558 [STDeco] Retire make dist and associated Makefile complexity - Dist::…
sorear authored
2 .PHONY: six all sixfast clean snap snaptest
f56748e [STD-ecosystem] Introduce a new bootstrapping paradigm. Most makefil…
sorear authored
3
10d5558 [STDeco] Retire make dist and associated Makefile complexity - Dist::…
sorear authored
4 INVARIANT=Actions.pm CORE.setting CursorBase.pmc DEBUG.pmc LazyMap.pm NAME.pmc\
4418dfa [std] Fold setting-compiler functionality into viv; remove in favor o…
sorear authored
5 RE_ast.pmc Stash.pmc mangle.pl uniprops viv
f56748e [STD-ecosystem] Introduce a new bootstrapping paradigm. Most makefil…
sorear authored
6 GENERATE=STD.pmc Cursor.pmc
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
7 BOOTFILES=boot/STD.pmc boot/Cursor.pmc
10d5558 [STDeco] Retire make dist and associated Makefile complexity - Dist::…
sorear authored
8
f56748e [STD-ecosystem] Introduce a new bootstrapping paradigm. Most makefil…
sorear authored
9 STD_SOURCE=STD.pm6 Cursor.pm6 CursorBase.pm6 lib/Stash.pm6 lib/NAME.pm6\
23ce489 [CursorBase] Remove support for Perl-initializer settings and make NU…
sorear authored
10 lib/DEBUG.pm6
f56748e [STD-ecosystem] Introduce a new bootstrapping paradigm. Most makefil…
sorear authored
11 CURSOR_SOURCE=Cursor.pm6 CursorBase.pm6
10d5558 [STDeco] Retire make dist and associated Makefile complexity - Dist::…
sorear authored
12
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
13 PERL=perl
14
15 RM_RF=$(PERL) -MExtUtils::Command -e rm_rf
16 CP=$(PERL) -MExtUtils::Command -e cp
17 MV=$(PERL) -MExtUtils::Command -e mv
18 MKDIR=mkdir
19 SVN=svn
20 # no snaptest on win32 just yet
21 CP_R=cp -r
22
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
23 six: syml/CORE.syml
24 all: syml/CORE.syml STD_P5.pmc
f56748e [STD-ecosystem] Introduce a new bootstrapping paradigm. Most makefil…
sorear authored
25
8b153d8 [STDeco] 'clean' wasn't meant to be the default target...
sorear authored
26 clean:
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
27 $(RM_RF) syml STD_P5.pmc $(GENERATE) boot/syml boot/.stamp .stamp\
ae1de96 [std] do not delete snap on "make clean"
moritz authored
28 STD_P5.pm5 STD.pm5 Cursor.pm5 snap.old snap.new
8b153d8 [STDeco] 'clean' wasn't meant to be the default target...
sorear authored
29
3776ca3 [STD-eco] add stage3 and reboot targets
sorear authored
30 ########################################
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
31 # */syml/CORE.syml indicates that the corresponding compiler is "usable"
32 boot/syml/CORE.syml: $(INVARIANT) $(BOOTFILES)
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
33 $(RM_RF) boot/syml
8623455 [STDeco] add a concept of standard syml files for viv, found in the i…
sorear authored
34 $(PERL) viv --boot --noperl6lib --compile-setting CORE.setting
3776ca3 [STD-eco] add stage3 and reboot targets
sorear authored
35
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
36 STD.pmc: $(STD_SOURCE) boot/syml/CORE.syml $(INVARIANT)
8623455 [STDeco] add a concept of standard syml files for viv, found in the i…
sorear authored
37 $(PERL) viv --boot --noperl6lib -5 -o STD.pm5 STD.pm6
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
38 $(PERL) tools/compact_pmc < STD.pm5 > STD.pmc
39 STD_P5.pmc: STD_P5.pm6 boot/syml/CORE.syml $(INVARIANT)
8623455 [STDeco] add a concept of standard syml files for viv, found in the i…
sorear authored
40 $(PERL) viv --boot --noperl6lib -5 -o STD_P5.pm5 STD_P5.pm6
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
41 $(PERL) tools/compact_pmc < STD_P5.pm5 > STD_P5.pmc
42 Cursor.pmc: $(CURSOR_SOURCE) boot/syml/CORE.syml $(INVARIANT)
8623455 [STDeco] add a concept of standard syml files for viv, found in the i…
sorear authored
43 $(PERL) viv --boot --noperl6lib -5 -o Cursor.pm5 Cursor.pm6
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
44 $(PERL) tools/compact_pmc < Cursor.pm5 > Cursor.pmc
45 syml/CORE.syml: STD.pmc Cursor.pmc $(INVARIANT)
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
46 $(RM_RF) syml
8623455 [STDeco] add a concept of standard syml files for viv, found in the i…
sorear authored
47 $(PERL) viv --noperl6lib --compile-setting CORE.setting
48 $(CP) boot/syml/CursorBase.syml boot/syml/Cursor.syml boot/syml/DEBUG.syml boot/syml/NAME.syml boot/syml/Stash.syml boot/syml/STD.syml syml
49 # reboot after incompatibly changing syml format
3776ca3 [STD-eco] add stage3 and reboot targets
sorear authored
50
acfc500 [STDeco] Don't use a separate stamp, since dmake chokes on dot files
sorear authored
51 reboot: six
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
52 $(CP) $(GENERATE) boot
53 $(RM_RF) boot/syml
3776ca3 [STD-eco] add stage3 and reboot targets
sorear authored
54
0777250 [STDeco] Simplify build again, removing quite a few outdated optimiza…
sorear authored
55 snap: all
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
56 $(RM_RF) snap.new
57 $(MKDIR) snap.new
58 $(SVN) info | $(PERL) -ne 'print "$$1\n" if /Revision:\s+(\d+)/' > snap.new/revision
59 $(CP_R) $(INVARIANT) $(GENERATE) syml STD_P5.pmc lib tools/tryfile tools/teststd snap.new
60 -$(RM_RF) snap.old
61 -$(MV) snap snap.old
62 $(MV) snap.new snap
846b412 [STDeco] Re-refactor snap out of snaptest
sorear authored
63
64 snaptest: snap
1fc8410 [STDeco] Convert Makefile to use ExtUtils::Command and not depend on …
sorear authored
65 cd snap && $(PERL) teststd $(realpath ../../t/spec)
56ca0d2 [src/perl6/Makefile] added help and a few comments
mberends authored
66
846b412 [STDeco] Re-refactor snap out of snaptest
sorear authored
67 #List all targets with brief descriptions.
56ca0d2 [src/perl6/Makefile] added help and a few comments
mberends authored
68 # Gradual shaving of targets with Occam's Razor would be a Good Thing.
69 help:
70 @echo
71 @echo 'In pugs/src/perl6 you can make these targets:'
72 @echo
9372b03 [STD-eco] Add STD_P5 build capability (under 'all' but not default)
sorear authored
73 @echo 'six (default) builds viv for Perl6'
74 @echo 'all builds viv for Perl5 too'
0777250 [STDeco] Simplify build again, removing quite a few outdated optimiza…
sorear authored
75 @echo 'reboot builds and updates boot; test first!'
3776ca3 [STD-eco] add stage3 and reboot targets
sorear authored
76 @echo 'clean removes generated files'
77 @echo 'help show this list'
55bc391 [STDeco] reinstate 'snaptest'
sorear authored
78 @echo 'snaptest run snapshot teststd on pugs/t/*'
56ca0d2 [src/perl6/Makefile] added help and a few comments
mberends authored
79 @echo
Something went wrong with that request. Please try again.