aboutsummaryrefslogtreecommitdiffhomepage
path: root/config/Makefile.template
diff options
context:
space:
mode:
Diffstat (limited to 'config/Makefile.template')
-rw-r--r--config/Makefile.template16
1 files changed, 16 insertions, 0 deletions
diff --git a/config/Makefile.template b/config/Makefile.template
index aa7f2d621..d5c2a1436 100644
--- a/config/Makefile.template
+++ b/config/Makefile.template
@@ -113,5 +113,21 @@ REALS=REALSOPT
# CoqIde (no/byte/opt)
HASCOQIDE=COQIDEOPT
+# Defining REVISION
+CHECKEDOUT=CHECKEDOUTSOURCETREE
+
+.PHONY: revision
+
+revision:
+ifeq ($(CHECKEDOUT),1)
+ - /bin/rm -f revision
+ sed -ne '/url/s/^.*\/\([^\/]\+\)"$$/\1/p' .svn/entries > revision
+ sed -ne '/revision/s/^.*"\([0-9]\+\)".*$$/r\1/p' .svn/entries >> revision
+endif
+
+archclean::
+ /bin/rm -f revision
+
# make or sed are bogus and believe lines not terminating by a return
# are inexistent
+