aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 16:51:56 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2009-06-05 16:51:56 +0000
commitc50fd3fb4e20097d57c33c04441a969392ba5d4d (patch)
tree9b72bc4300a9bc6a1530d7f477eb5a88690a04c6
parent88dba02dcbebc07dba12b5f3b54d224d55c5716b (diff)
fixes to make this new Makefile work with the Pd-extended makefile
svn path=/trunk/externals/motex/; revision=11687
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index d46c867..0564c1e 100644
--- a/Makefile
+++ b/Makefile
@@ -4,7 +4,7 @@
SOURCES = getenv.c ln~.c pansig~.c pan~.c pol2rec~.c polygate~.c rec2pol~.c shuffle.c system.c
-LIBRARY_NAME = $(shell basename $(PWD))
+LIBRARY_NAME := $(shell basename `pwd`)
pd_src = ../../pd
objectsdir = $(pd_src)/extra
@@ -49,6 +49,7 @@ endif
CFLAGS += $(OPT_CFLAGS)
+.PHONY = install libdir_install single_install install-doc install-exec clean dist etags
all: $(SOURCES:.c=.$(EXTENSION))
@@ -68,17 +69,18 @@ $(LIBRARY_NAME): $(SOURCES:.c=.o) $(LIBRARY_NAME).o
$(STRIP) $(LIBRARY_NAME).$(EXTENSION)
rm -f -- $*.o
+
install: libdir_install
# The meta and help files are explicitly installed to make sure they are
# actually there. Those files are not optional, then need to be there.
-libdir_install: install-doc install-exec
+libdir_install: $(SOURCES:.c=.$(EXTENSION)) install-doc install-exec
install -d $(objectsdir)/$(LIBRARY_NAME)
install -m644 -p $(LIBRARY_NAME)-meta.pd $(objectsdir)/$(LIBRARY_NAME)
install -m644 -p $(SOURCES:.c=.$(EXTENSION)) $(objectsdir)/$(LIBRARY_NAME)
# install library linked as single binary
-single_install: install-doc install-exec
+single_install: $(LIBRARY_NAME) install-doc install-exec
install -d $(objectsdir)/$(LIBRARY_NAME)
install -m644 -p $(LIBRARY_NAME).$(EXTENSION) $(objectsdir)/$(LIBRARY_NAME)