From d26744af0c8050c936c1c45b25dc3ae228ccbc97 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Mon, 23 Aug 2010 22:05:09 +0000 Subject: added version macro based on version in meta file svn path=/trunk/externals/template/; revision=13901 --- Makefile | 2 ++ 1 file changed, 2 insertions(+) (limited to 'Makefile') 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 -- cgit v1.2.1