diff Makefile @ 28:ed3eb4b497e5

version in Makefile is extracted from sources now
author meillo@marmaro.de
date Fri, 22 Feb 2008 13:45:22 +0100
parents 69a7cf2f0c06
children 88a51653db83
line wrap: on
line diff
--- a/Makefile	Thu Feb 21 10:09:36 2008 +0100
+++ b/Makefile	Fri Feb 22 13:45:22 2008 +0100
@@ -2,7 +2,8 @@
 
 
 NAME=baum
-VERSION = 0.1
+# extracts VERSION from the sources
+VERSION=$(shell cat *.c | sed -n '/define VERSION/ s/.*"\([^"]*\)".*/\1/p'  )
 NV=${NAME}-${VERSION}
 
 DOCS=LICENSE README ChangeLog TODO examples