diff options
author | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-02-10 00:58:33 +0000 |
---|---|---|
committer | Hans-Christoph Steiner <eighthave@users.sourceforge.net> | 2010-02-10 00:58:33 +0000 |
commit | 1d2c5e8979076508b72f5687909136fa8071986e (patch) | |
tree | b030f0af6457adab01721add3e346e50282c5450 /Makefile | |
parent | c1808762bec79a71f6702290344ef2f2ec723aed (diff) |
added rule to install 'examples' if they exist
svn path=/trunk/externals/sigpack/; revision=13161
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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) |