aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-04-06 17:52:48 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-04-06 17:52:48 +0000
commit5328502617a1d410133ca5494b4c694d0c15e1a5 (patch)
tree779c01938675fe90f8235f111cb3002448d4010c /Makefile
parent6b7d705d71a220c8051f0aeee6adee5978ffd083 (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--Makefile15
1 files 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)"