From 8a2c2824a59d7644e13bc52c9a0ecbd641f21f95 Mon Sep 17 00:00:00 2001 From: Robert Jonsson Date: Wed, 13 Oct 2010 19:34:22 +0000 Subject: new branch muse2, first checkin --- muse2/lib/plugins/Makefile.am | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 muse2/lib/plugins/Makefile.am (limited to 'muse2/lib/plugins/Makefile.am') 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) + -- cgit v1.2.3