~ chicken-core (chicken-5) 6f45378c0ab87e173d814ad365b6e05c2ae5f65b


commit 6f45378c0ab87e173d814ad365b6e05c2ae5f65b
Author:     felix <felix@call-with-current-continuation.org>
AuthorDate: Sat May 15 23:01:11 2010 +0200
Commit:     felix <felix@call-with-current-continuation.org>
CommitDate: Sat May 15 23:01:11 2010 +0200

    makefile variable for buildhead target

diff --git a/defaults.make b/defaults.make
index 1739b1a3..55918a4c 100644
--- a/defaults.make
+++ b/defaults.make
@@ -352,6 +352,11 @@ ifdef WINDOWS
 TARGETS += chicken.rc$(O)
 endif
 
+ifeq ($HEAD,)
+HEAD = HEAD
+endif
+
+
 # main rule
 
 .PHONY: all
diff --git a/rules.make b/rules.make
index 0dd37245..d6caa65c 100644
--- a/rules.make
+++ b/rules.make
@@ -1093,6 +1093,6 @@ stage3:
 
 buildhead:
 	rm -fr chicken-`cat buildversion`
-	git archive --format=tar --prefix=chicken-`cat buildversion`/ HEAD | tar x
+	git archive --format=tar --prefix=chicken-`cat buildversion`/ $(HEAD) | tar x
 	cd chicken-`cat buildversion`; $(MAKE) -f Makefile.$(PLATFORM) \
 	  PLATFORM=$(PLATFORM) PREFIX=`pwd` CONFIG= CHICKEN=$(CHICKEN) all install
Trap