summaryrefslogtreecommitdiff
path: root/plugins/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'plugins/Makefile')
-rw-r--r--plugins/Makefile33
1 files changed, 33 insertions, 0 deletions
diff --git a/plugins/Makefile b/plugins/Makefile
new file mode 100644
index 0000000..c622063
--- /dev/null
+++ b/plugins/Makefile
@@ -0,0 +1,33 @@
+
+include plugins.mk
+
+DIST_FILES := \
+ Makefile \
+ Makefile.plugin.mk \
+ plugins.mk
+
+.PHONY: all
+all: $(ALL_PLUGINS)
+
+.PHONY: $(ALL_PLUGINS)
+$(ALL_PLUGINS):
+ @$(MAKE) --directory=$@ PLUGINS_VERSION="$(PLUGINS_VERSION)" USER_VALAFLAGS="$(USER_VALAFLAGS)" \
+ PLUGIN_CFLAGS="$(PLUGIN_CFLAGS)"
+
+.PHONY: clean
+clean:
+ $(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) clean;)
+
+.PHONY: cleantemps
+cleantemps:
+ $(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) cleantemps;)
+
+.PHONY: distclean
+distclean:
+ $(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) distclean;)
+
+.PHONY: listfiles
+listfiles:
+ @printf "$(foreach file,$(DIST_FILES), plugins/$(file)) "
+ @$(foreach plugin,$(ALL_PLUGINS),$(MAKE) --directory=$(plugin) --no-print-directory listfiles;)
+