summaryrefslogtreecommitdiffstats
path: root/rules/post/plugins.make
blob: b84d21e524db8ca27566c87098cd5141cc41a900 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# -*-makefile-*-

plugins:
	@echo "Installed Plugins:"
	@echo $(wildcard $(PTXDIST_TOPDIR)/plugins/*)

plugin-%: dump
	@echo "trying plugin $(*)"
	@if [ -x "$(PTXDIST_WORKSPACE)/plugins/$(*)/main" ]; then 	\
		echo "local plugin found.";				\
		$(PTXDIST_WORKSPACE)/plugins/$(*)/main;			\
	elif [ -x "$(PTXDIST_TOPDIR)/plugins/$(*)/main" ]; then  	\
		echo "generic plugin found.";                   	\
		$(PTXDIST_TOPDIR)/plugins/$(*)/main;            	\
	else								\
		echo "sorry, plugin not found";				\
	fi

# vim600:set foldmethod=marker:
# vim600:set syntax=make: