diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-04-06 17:52:48 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-04-06 17:52:48 +0000 |
commit | 5328502617a1d410133ca5494b4c694d0c15e1a5 (patch) | |
tree | 779c01938675fe90f8235f111cb3002448d4010c /Makefile | |
parent | 6b7d705d71a220c8051f0aeee6adee5978ffd083 (diff) |
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
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 15 |
1 files changed, 9 insertions, 6 deletions
@@ -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)" |