diff options
author | Peter Harris <git@peter.is-a-geek.org> | 2010-12-24 11:22:40 -0500 |
---|---|---|
committer | Peter Harris <git@peter.is-a-geek.org> | 2010-12-24 14:22:52 -0500 |
commit | bc046920a1981b392a6ffc333fbaab7ef3ff8a72 (patch) | |
tree | 1754250d3c6c66ff3f01d92b80af2e25a1ce258e | |
parent | 49b9a7f64aad4eb47f2a9671c539546c43f2c785 (diff) |
Add simple Makefile
-rw-r--r-- | .gitignore | 2 | ||||
-rw-r--r-- | Makefile | 16 |
2 files changed, 17 insertions, 1 deletions
@@ -1,4 +1,4 @@ -6.out +test build *.6 *.go diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..d0866ae --- /dev/null +++ b/Makefile @@ -0,0 +1,16 @@ + +# Don't delete intermediates +.SECONDARY: + +# How to compile a .go file +%.6: %.go + 6g -I. $< + +%: %.6 + 6l -L. -o $@ $< + +# Compile our simple test app +test: test.6 + +# Dependencies +test.6: xgob.6 |