Skip to content

Commit 350524c

Browse files
committed
First pass at making Makefile dynamic-ish
1 parent c64e8bc commit 350524c

File tree

4 files changed

+12
-1
lines changed

4 files changed

+12
-1
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,3 +11,4 @@ html/images/type-graph*
1111
html/js/search.js
1212
.precomp
1313
precompiled
14+
Makefile

.travis.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,4 +24,4 @@ install:
2424
- panda installdeps .
2525
- panda install Pod::To::HTML
2626

27-
script: make test && make html
27+
script: perl6 Configure.p6 && make test && make html

Configure.p6

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
use v6.c;
2+
3+
sub MAIN {
4+
my $inputfile = "tools/build/Makefile.in";
5+
my @output;
6+
for $inputfile.IO.lines -> $line {
7+
@output.push($line);
8+
}
9+
spurt "Makefile", @output.join("\n");
10+
}
File renamed without changes.

0 commit comments

Comments
 (0)