aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-10 05:16:14 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-10 05:16:14 +0000
commitd03c2072474328412ea11047ee339a3e72616203 (patch)
tree79d40883de0b4b9e0f373b9e79b0a1cb8a7a50ed
parent65016574643836bd7c674aae7159994b7eb5e88d (diff)
updated all templates with the PDOBJECTS fixes from the 'mapping' build
svn path=/trunk/externals/windowing/; revision=13167
-rw-r--r--Makefile30
-rw-r--r--README.txt (renamed from README)0
2 files changed, 14 insertions, 16 deletions
diff --git a/Makefile b/Makefile
index 97f59ce..eba5b2c 100644
--- a/Makefile
+++ b/Makefile
@@ -24,7 +24,7 @@ PDOBJECTS =
# if you want to include any other files in the source and binary tarballs,
# list them here. This can be anything from header files, READMEs, example
# patches, documentation, etc.
-EXTRA_DIST = mconf.h README
+EXTRA_DIST = mconf.h README.txt
#------------------------------------------------------------------------------#
@@ -129,7 +129,7 @@ endif
CFLAGS += $(OPT_CFLAGS)
-.PHONY = install libdir_install single_install install-doc install-exec clean dist etags
+.PHONY = install libdir_install single_install install-doc install-exec install-examples clean dist etags
all: $(SOURCES:.c=.$(EXTENSION))
@@ -154,11 +154,11 @@ libdir_install: $(SOURCES:.c=.$(EXTENSION)) install-doc install-examples
$(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
$(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd \
$(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
- test -z "$(SOURCES)" || (\
+ test -z "$(strip $(SOURCES))" || (\
$(INSTALL_FILE) $(SOURCES:.c=.$(EXTENSION)) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME) && \
$(STRIP) $(addprefix $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/,$(SOURCES:.c=.$(EXTENSION))))
- test -z "$(PDOBJECTS)" || \
- $(INSTALL_FILE) $(OBJECTS) \
+ test -z "$(strip $(PDOBJECTS))" || \
+ $(INSTALL_FILE) $(PDOBJECTS) \
$(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
# install library linked as single binary
@@ -169,15 +169,13 @@ single_install: $(LIBRARY_NAME) install-doc install-exec
install-doc:
$(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
- test -z "$(SOURCES)" || \
+ test -z "$(strip $(SOURCES))" || \
$(INSTALL_FILE) $(SOURCES:.c=-help.pd) \
$(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
- test -z "$(PDOBJECTS)" || \
+ test -z "$(strip $(PDOBJECTS))" || \
$(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) \
$(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
- $(INSTALL_FILE) README $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/README.txt
-# $(INSTALL_FILE) VERSION $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/VERSION.txt
-# $(INSTALL_FILE) CHANGES $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/CHANGES.txt
+ $(INSTALL_FILE) README.txt $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/README.txt
install-examples:
test ! -d examples || (\
@@ -204,7 +202,7 @@ libdir: all $(DISTBINDIR)
$(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTBINDIR)
$(INSTALL_FILE) $(SOURCES) $(DISTBINDIR)
$(INSTALL_FILE) $(SOURCES:.c=-help.pd) $(DISTBINDIR)
- test -z "$(EXTRA_DIST)" || \
+ test -z "$(strip $(EXTRA_DIST))" || \
$(INSTALL_FILE) $(EXTRA_DIST) $(DISTBINDIR)
# tar --exclude-vcs -czpf $(DISTBINDIR).tar.gz $(DISTBINDIR)
@@ -214,15 +212,15 @@ $(DISTDIR):
dist: $(DISTDIR)
$(INSTALL_FILE) Makefile $(DISTDIR)
$(INSTALL_FILE) $(LIBRARY_NAME)-meta.pd $(DISTDIR)
- test -z "$(ALLSOURCES)" || \
+ test -z "$(strip $(ALLSOURCES))" || \
$(INSTALL_FILE) $(ALLSOURCES) $(DISTDIR)
- test -z "$(ALLSOURCES)" || \
+ test -z "$(strip $(ALLSOURCES))" || \
$(INSTALL_FILE) $(ALLSOURCES:.c=-help.pd) $(DISTDIR)
- test -z "$(PDOBJECTS)" || \
+ test -z "$(strip $(PDOBJECTS))" || \
$(INSTALL_FILE) $(PDOBJECTS) $(DISTDIR)
- test -z "$(PDOBJECTS)" || \
+ test -z "$(strip $(PDOBJECTS))" || \
$(INSTALL_FILE) $(PDOBJECTS:.pd=-help.pd) $(DISTDIR)
- test -z "$(EXTRA_DIST)" || \
+ test -z "$(strip $(EXTRA_DIST))" || \
$(INSTALL_FILE) $(EXTRA_DIST) $(DISTDIR)
tar --exclude-vcs -czpf $(DISTDIR).tar.gz $(DISTDIR)
diff --git a/README b/README.txt
index 835705c..835705c 100644
--- a/README
+++ b/README.txt