Makefile version dynamically set.

git-svn-id: https://proxytunnel.svn.sourceforge.net/svnroot/proxytunnel/trunk/proxytunnel@234 bc163920-b10d-0410-b2c5-a5491ca2ceef
This commit is contained in:
Dag Wieers 2008-08-09 21:09:50 +00:00
parent 191a2d644f
commit cebf3bf5ad

View file

@ -2,8 +2,8 @@
#
# Please uncomment the appropriate settings
name = proxytunnel
version = 1.9.0
#version = $(shell sed -e '/^#define VERSION /s/^.\+"\(.\+\)".*$/\1/' config.h)
#version = 1.9.0
version = $(shell awk 'BEGIN { FS="\"" } /^\#define VERSION / { print $$2 }' config.h)
CC ?= cc
CFLAGS ?= -Wall -O2 -ggdb