aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-10 00:51:29 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-10 00:51:29 +0000
commitc32cfb8a09f627a8a4fe7ba6ca09d1f244b1e385 (patch)
tree3f663f2cb192277c885398ec9271a8f678a7ba97 /Makefile
parentabee9a1163339202099f7780055ad887c1fd6c41 (diff)
added examples to 'make install'
svn path=/trunk/externals/smlib/; revision=13160
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile7
1 files changed, 6 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index deecc5d..9104e12 100644
--- a/Makefile
+++ b/Makefile
@@ -151,7 +151,7 @@ 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: $(SOURCES:.c=.$(EXTENSION)) install-doc
+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)
@@ -178,6 +178,11 @@ install-doc:
$(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
$(INSTALL_FILE) readme.txt $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/readme.txt
+install-examples:
+ test ! -d examples || (\
+ $(INSTALL_DIR) $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples && \
+ $(INSTALL_FILE) examples/*.* $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/examples)
+
clean:
-rm -f -- $(SOURCES:.c=.o)