aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-08-23 22:05:09 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-08-23 22:05:09 +0000
commitd26744af0c8050c936c1c45b25dc3ae228ccbc97 (patch)
treee310b8039e2c8dc80803a6c2f5624a5eabed87ec /Makefile
parent5001e8eeb99d81a492ca782dbed8df0063a26ab2 (diff)
added version macro based on version in meta file
svn path=/trunk/externals/template/; revision=13901
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 060ab3a..6f68ad5 100644
--- a/Makefile
+++ b/Makefile
@@ -44,6 +44,8 @@ LIBS =
# get library version from meta file
LIBRARY_VERSION = $(shell sed -n 's|^\#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);|\1|p' $(LIBRARY_NAME)-meta.pd)
+CFLAGS += -DVERSION='"$(LIBRARY_VERSION)"'
+
# where Pd lives
PD_PATH = ../../pd
# where to install the library