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
commit65016574643836bd7c674aae7159994b7eb5e88d (patch)
treeccbea6d2ba632be7fa5632c352217c573ecb6cc8
parentd92818c7b2dec9084ed4ad5d79ee219c6c90e6b0 (diff)
added rule to install 'examples' if they exist
svn path=/trunk/externals/windowing/; 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 1d9f8d7..97f59ce 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)
@@ -179,6 +179,11 @@ install-doc:
# $(INSTALL_FILE) VERSION $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/VERSION.txt
# $(INSTALL_FILE) CHANGES $(DESTDIR)$(objectsdir)/$(LIBRARY_NAME)/CHANGES.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 91460f8..9762313 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,4 +1,4 @@
-pd-windowing (0.17-1.2) unstable; urgency=low
+pd-windowing (0.17-1.3) unstable; urgency=low
* Initial release (Closes: #nnnn) <nnnn is the bug number of your ITP>