baum

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 diff
     1.1 --- a/Makefile	Thu Feb 21 10:09:36 2008 +0100
     1.2 +++ b/Makefile	Fri Feb 22 13:45:22 2008 +0100
     1.3 @@ -2,7 +2,8 @@
     1.4  
     1.5  
     1.6  NAME=baum
     1.7 -VERSION = 0.1
     1.8 +# extracts VERSION from the sources
     1.9 +VERSION=$(shell cat *.c | sed -n '/define VERSION/ s/.*"\([^"]*\)".*/\1/p'  )
    1.10  NV=${NAME}-${VERSION}
    1.11  
    1.12  DOCS=LICENSE README ChangeLog TODO examples