aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorpmichaud <pmichaud@pobox.com>2010-07-27 15:18:55 -0500
committerpmichaud <pmichaud@pobox.com>2010-07-27 15:18:55 -0500
commit5cfe6b289455ffb2d0a17f1cab70f96083df0447 (patch)
tree1743695f22edc74fd604f2d3be541f4e02182c04 /Makefile
parentd7fd03c91f1e622c8585b4637ae3f5f091e0bb86 (diff)
Update build process slightly.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile47
1 files changed, 45 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index b02796e..6dfc640 100644
--- a/Makefile
+++ b/Makefile
@@ -1,2 +1,45 @@
-dist:
- perl build/download-stuff.pl
+PARROT_VER = 2.6.0
+RAKUDO_TAG = master
+
+DISTDIR = dist
+
+PARROT = parrot-$(PARROT_VER)
+PARROT_TGZ = $(PARROT).tar.gz
+PARROT_DIR = $(DISTDIR)/$(PARROT)
+
+RAKUDO_DIR = $(DISTDIR)/rakudo
+BUILD_DIR = $(DISTDIR)/build
+
+BUILD_FILES = \
+ build/gen_parrot.pl \
+ build/Makefile.in \
+
+DISTTARGETS = \
+ $(PARROT_DIR) \
+ $(RAKUDO_DIR) \
+ $(BUILD_DIR) \
+ $(BUILD_DIR)/PARROT_REVISION \
+ $(DISTDIR)/Configure.pl \
+
+$(DISTDIR): $(DISTTARGETS)
+
+$(PARROT_DIR): $(PARROT_TGZ)
+ mkdir -p $(DISTDIR)
+ tar -C $(DISTDIR) -xvzf $(PARROT_TGZ)
+$(PARROT).tar.gz:
+ wget http://ftp.parrot.org/releases/supported/$(PARROT_VER)/$(PARROT_TGZ)
+
+$(RAKUDO_DIR):
+ git clone git@github.com:rakudo/rakudo.git $(RAKUDO_DIR)
+ cd $(RAKUDO_DIR); git checkout $(RAKUDO_VER)
+
+$(DISTDIR)/Configure.pl: build/Configure.pl
+ cp build/Configure.pl $(DISTDIR)
+
+$(BUILD_DIR): $(BUILD_FILES)
+ mkdir -p $(BUILD_DIR)
+ cp $(BUILD_FILES) $(BUILD_DIR)
+
+$(BUILD_DIR)/PARROT_REVISION: $(RAKUDO_DIR) $(RAKUDO_DIR)/build/PARROT_REVISION
+ cp $(RAKUDO_DIR)/build/PARROT_REVISION $(BUILD_DIR)
+