comparison 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
comparison
equal deleted inserted replaced
27:1c3dd1e88bdf 28:ed3eb4b497e5
1 # baum by meillo@marmaro.de 1 # baum by meillo@marmaro.de
2 2
3 3
4 NAME=baum 4 NAME=baum
5 VERSION = 0.1 5 # extracts VERSION from the sources
6 VERSION=$(shell cat *.c | sed -n '/define VERSION/ s/.*"\([^"]*\)".*/\1/p' )
6 NV=${NAME}-${VERSION} 7 NV=${NAME}-${VERSION}
7 8
8 DOCS=LICENSE README ChangeLog TODO examples 9 DOCS=LICENSE README ChangeLog TODO examples
9 10
10 # paths 11 # paths