From 5328502617a1d410133ca5494b4c694d0c15e1a5 Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Tue, 6 Apr 2010 17:52:48 +0000 Subject: use sed to get the library version from the meta file so that it is the canonical place to set the version svn path=/trunk/externals/template/; revision=13376 --- Makefile | 15 +++++++++------ 1 file changed, 9 insertions(+), 6 deletions(-) diff --git a/Makefile b/Makefile index 94e1e0a..6a4719c 100644 --- a/Makefile +++ b/Makefile @@ -1,10 +1,10 @@ -#For instructions on how to use this template, see: +## Pd library template version 1.0 +# For instructions on how to use this template, see: # http://puredata.info/docs/developer/MakefileTemplate LIBRARY_NAME = template -LIBRARY_VERSION = sed -n 's|^#X text [0-9][0-9]* [0-9][0-9]* VERSION \(.*\);$|\1|p' $(LIBRARY_NAME)-meta.pd -# Next, add your .c source files to the SOURCES variable. The help files will -# be included automatically +# add your .c source files to the SOURCES variable, help files will be +# included automatically SOURCES = mycobject.c # For objects that only build on certain platforms, add those to the SOURCES @@ -40,7 +40,8 @@ EXTRA_DIST = # #------------------------------------------------------------------------------# -# template version 1.0 +# 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) # where Pd lives PD_PATH = ../../pd @@ -261,11 +262,13 @@ dist: $(DISTDIR) etags: etags *.h $(SOURCES) ../../pd/src/*.[ch] /usr/include/*.h /usr/include/*/*.h -showpaths: +showsetup: @echo "PD_PATH: $(PD_PATH)" @echo "objectsdir: $(objectsdir)" @echo "LIBRARY_NAME: $(LIBRARY_NAME)" + @echo "LIBRARY_VERSION: $(LIBRARY_VERSION)" @echo "SOURCES: $(SOURCES)" + @echo "PDOBJECTS: $(PDOBJECTS)" @echo "ALLSOURCES: $(ALLSOURCES)" @echo "UNAME: $(UNAME)" @echo "CPU: $(CPU)" -- cgit v1.2.1