aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-10 00:58:33 +0000
committerHans-Christoph Steiner <eighthave@users.sourceforge.net>2010-02-10 00:58:33 +0000
commitab5c2e234af2fdb577776534881a68d44dd6754a (patch)
treec9daa6ac4aa045d6d63df491700ae84a7d4dd8b2
parent2b0b6bd6fd3732b804dc5c75a3f1a34355e36dfb (diff)
added rule to install 'examples' if they exist
svn path=/trunk/externals/motex/; revision=13161
-rw-r--r--Makefile7
-rw-r--r--debian/changelog2
2 files changed, 7 insertions, 2 deletions
diff --git a/Makefile b/Makefile
index e378b7a..df50d1e 100644
--- a/Makefile
+++ b/Makefile
@@ -150,7 +150,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)
@@ -177,6 +177,11 @@ install-doc:
$(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)
$(INSTALL_FILE) README $(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)
diff --git a/debian/changelog b/debian/changelog
index 14c14c7..d754b61 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-pd-motex (1.1.4-1.2) unstable; urgency=low
+pd-motex (1.1.4-1.3) unstable; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>