diff options
author | Robert Jonsson <spamatica@gmail.com> | 2010-10-13 19:34:22 +0000 |
---|---|---|
committer | Robert Jonsson <spamatica@gmail.com> | 2010-10-13 19:34:22 +0000 |
commit | 8a2c2824a59d7644e13bc52c9a0ecbd641f21f95 (patch) | |
tree | 064ad3f2bf8daab0ad27b128abd86a9bbdb1e496 /muse2/lib/plugins/Makefile.am | |
parent | a27706d9629e8b592cca4659f865b70adef24e6d (diff) |
new branch muse2, first checkin
Diffstat (limited to 'muse2/lib/plugins/Makefile.am')
-rw-r--r-- | muse2/lib/plugins/Makefile.am | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/muse2/lib/plugins/Makefile.am b/muse2/lib/plugins/Makefile.am new file mode 100644 index 00000000..8b6c0ce2 --- /dev/null +++ b/muse2/lib/plugins/Makefile.am @@ -0,0 +1,23 @@ +all-local: link + +PLUGINDIRS = $(shell find ../../plugins -type d \ + \( -not -name obj \ + -not -name CVS \ + -not -name ".*" \ + -not -name plugins \)) + +PLUGINS = $(notdir $(PLUGINDIRS)) + +link: + find -type l -exec rm {} \; + for plugin in $(PLUGINS); do \ + if test -e ../../plugins/$${plugin}/$${plugin}; then \ + ln -s ../../plugins/$${plugin}/$${plugin} .; \ + fi; \ + if test -e ../../plugins/$${plugin}/$${plugin}.so; then \ + ln -s ../../plugins/$${plugin}/$${plugin}.so .; \ + fi; \ + done + +CLEANFILES = $(PLUGINS) $(PLUGINS:%=%.so) + |