1
# plugin.scan: always the current list, generated every build so keep this
5
@find ${srcdir}/plugin -name 'plugin.ini' | xargs -n1 dirname | xargs -n1 basename | sort -b -d > $@
7
# Plugins affect configure; so to prevent configure running twice in a tarball
8
# build (once up front, once with the right list of plugins, we ship the
9
# generated list of plugins and the housekeeping material for that list so it
10
# is likewise not updated.
12
config/plugin-list.ac \
15
config/register_plugins.py
17
# plugin.list: datestamp preserved list
18
${srcdir}/config/plugin.list: .plugin.scan
19
@cmp -s $@ $< || (mv $< $@ ; echo "Changed plugin list" )
21
# Seed the list of plugin LDADDS which plugins may extend.
22
PANDORA_DYNAMIC_LDADDS=
23
# config/plugin-list.am: generated static include of per plugin makefiles
24
# to allow automake processing of each included file. The filename is
25
# pandora-plugin.am because plugins may supply their own plugin.am as an
27
include config/plugin-list.am
28
# Read from plugin.list; depend on plugin.stamp as register_plugins does the
29
# creation of the included pandora-plugin.am files.
30
${srcdir}/config/plugin-list.am: config/plugin.list config/plugin.stamp
31
@echo Generating automake includes.
32
@cd ${srcdir} && python config/register_plugins.py plugin-list.am
35
# config/plugin-list.ac: generated static include of per plugin m4 rules
36
# to allow options in 'configure'.
37
${srcdir}/config/plugin-list.ac: config/plugin.list config/plugin.stamp
38
@echo Generating autoconf includes.
39
@cd ${srcdir} && python config/register_plugins.py plugin-list.ac
41
# rebuild configure when the list of plugins changes.
42
configure: ${srcdir}/config/plugin-list.ac
45
# plugin.stamp: graph dominator for creating all per pandora-plugin.ac/am
46
# files. This is invoked when the code to generate such files has altered.
47
config/plugin.stamp: ${srcdir}/config/plugin.list ${srcdir}/config/register_plugins.py
48
cd ${srcdir} && python config/register_plugins.py plugin-stamp