Permalink
Browse files

Autotools: Conditionally add plugins to SUBDIRS

Automake will automatically generate a DIST_SUBDIRS variable to get
everything right for "make dist"
sardemff7 authored and hyperair committed May 19, 2012
1 parent 4522ce6 commit f3acbb15d373ca24c07a8b3d51cd63f802aa8455
Showing with 118 additions and 194 deletions.
  1. +118 −34 Makefile.am
  2. +0 −2 addons/Makefile.am
  3. +0 −2 addons/src/Makefile.am
  4. +0 −2 codenav/Makefile.am
  5. +0 −2 codenav/src/Makefile.am
  6. +0 −2 debugger/Makefile.am
  7. +0 −2 debugger/img/Makefile.am
  8. +0 −2 debugger/src/Makefile.am
  9. +0 −2 devhelp/Makefile.am
  10. +0 −3 devhelp/data/Makefile.am
  11. +0 −2 devhelp/devhelp/Makefile.am
  12. +0 −2 devhelp/src/Makefile.am
  13. +0 −2 geanydoc/Makefile.am
  14. +0 −2 geanydoc/src/Makefile.am
  15. +0 −2 geanyextrasel/Makefile.am
  16. +0 −2 geanyextrasel/src/Makefile.am
  17. +0 −2 geanygdb/Makefile.am
  18. +0 −2 geanygdb/src/Makefile.am
  19. +0 −2 geanygendoc/Makefile.am
  20. +0 −3 geanygendoc/data/filetypes/Makefile.am
  21. +0 −3 geanygendoc/docs/Makefile.am
  22. +0 −2 geanygendoc/src/Makefile.am
  23. +0 −2 geanyinsertnum/Makefile.am
  24. +0 −2 geanyinsertnum/src/Makefile.am
  25. +0 −2 geanylatex/Makefile.am
  26. +0 −3 geanylatex/doc/Makefile.am
  27. +0 −2 geanylatex/src/Makefile.am
  28. +0 −2 geanylipsum/Makefile.am
  29. +0 −2 geanylipsum/src/Makefile.am
  30. +0 −6 geanylua/Makefile.am
  31. +0 −3 geanylua/docs/Makefile.am
  32. +0 −3 geanylua/examples/dialogs/Makefile.am
  33. +0 −3 geanylua/examples/edit/Makefile.am
  34. +0 −3 geanylua/examples/info/Makefile.am
  35. +0 −3 geanylua/examples/scripting/Makefile.am
  36. +0 −3 geanylua/examples/work/Makefile.am
  37. +0 −2 geanymacro/Makefile.am
  38. +0 −2 geanymacro/src/Makefile.am
  39. +0 −2 geanyminiscript/Makefile.am
  40. +0 −2 geanyminiscript/src/Makefile.am
  41. +0 −2 geanynumberedbookmarks/Makefile.am
  42. +0 −2 geanynumberedbookmarks/src/Makefile.am
  43. +0 −2 geanypg/Makefile.am
  44. +0 −2 geanypg/src/Makefile.am
  45. +0 −2 geanyprj/Makefile.am
  46. +0 −2 geanyprj/src/Makefile.am
  47. +0 −2 geanysendmail/Makefile.am
  48. +0 −2 geanysendmail/src/Makefile.am
  49. +0 −2 geanyvc/Makefile.am
  50. +0 −2 geanyvc/src/Makefile.am
  51. +0 −2 geanyvc/tests/Makefile.am
  52. +0 −2 geniuspaste/Makefile.am
  53. +0 −2 geniuspaste/src/Makefile.am
  54. +0 −2 gproject/Makefile.am
  55. +0 −3 gproject/icons/Makefile.am
  56. +0 −2 gproject/src/Makefile.am
  57. +0 −2 multiterm/Makefile.am
  58. +0 −2 multiterm/src/Makefile.am
  59. +0 −2 pretty-printer/src/Makefile.am
  60. +0 −2 shiftcolumn/Makefile.am
  61. +0 −2 shiftcolumn/src/Makefile.am
  62. +0 −3 spellcheck/Makefile.am
  63. +0 −2 spellcheck/src/Makefile.am
  64. +0 −2 tableconvert/Makefile.am
  65. +0 −2 tableconvert/src/Makefile.am
  66. +0 −2 treebrowser/Makefile.am
  67. +0 −2 treebrowser/src/Makefile.am
  68. +0 −2 updatechecker/Makefile.am
  69. +0 −2 updatechecker/src/Makefile.am
  70. +0 −2 webhelper/Makefile.am
  71. +0 −2 webhelper/src/Makefile.am
  72. +0 −2 xmlsnippets/Makefile.am
  73. +0 −2 xmlsnippets/src/Makefile.am
View
@@ -1,39 +1,123 @@
-plugins = \
- addons \
- codenav \
- debugger \
- devhelp \
- geanydoc \
- geanyextrasel \
- geanygdb \
- geanygendoc \
- geanyinsertnum \
- geanylatex \
- geanylipsum \
- geanylua \
- geanymacro \
- geanyminiscript \
- geanynumberedbookmarks \
- geanypg \
- geanyprj \
- geanysendmail \
- geanyvc \
- gproject \
- multiterm \
- pretty-printer \
- shiftcolumn \
- spellcheck \
- tableconvert \
- treebrowser \
- updatechecker \
- webhelper \
- xmlsnippets
-
ACLOCAL_AMFLAGS = -I build/cache -I build -I build/bundled --install
-SUBDIRS = \
- po \
- $(plugins)
+SUBDIRS = po
+
+if ENABLE_ADDONS
+SUBDIRS += addons
+endif
+
+if ENABLE_CODENAV
+SUBDIRS += codenav
+endif
+
+if ENABLE_DEBUGGER
+SUBDIRS += debugger
+endif
+
+if ENABLE_DEVHELP
+SUBDIRS += devhelp
+endif
+
+if ENABLE_GEANYDOC
+SUBDIRS += geanydoc
+endif
+
+if ENABLE_GEANYEXTRASEL
+SUBDIRS += geanyextrasel
+endif
+
+if ENABLE_GEANYGDB
+SUBDIRS += geanygdb
+endif
+
+if ENABLE_GEANYGENDOC
+SUBDIRS += geanygendoc
+endif
+
+if ENABLE_GEANYINSERTNUM
+SUBDIRS += geanyinsertnum
+endif
+
+if ENABLE_GEANYLATEX
+SUBDIRS += geanylatex
+endif
+
+if ENABLE_GEANYLIPSUM
+SUBDIRS += geanylipsum
+endif
+
+if ENABLE_GEANYLUA
+SUBDIRS += geanylua
+endif
+
+if ENABLE_GEANYMACRO
+SUBDIRS += geanymacro
+endif
+
+if ENABLE_GEANYMINISCRIPT
+SUBDIRS += geanyminiscript
+endif
+
+if ENABLE_GEANYNUMBEREDBOOKMARKS
+SUBDIRS += geanynumberedbookmarks
+endif
+
+if ENABLE_GEANYPG
+SUBDIRS += geanypg
+endif
+
+if ENABLE_GEANYPRJ
+SUBDIRS += geanyprj
+endif
+
+if ENABLE_GEANYSENDMAIL
+SUBDIRS += geanysendmail
+endif
+
+if ENABLE_GEANYVC
+SUBDIRS += geanyvc
+endif
+
+if ENABLE_GPROJECT
+SUBDIRS += gproject
+endif
+
+if ENABLE_MULTITERM
+SUBDIRS += multiterm
+endif
+
+if ENABLE_PRETTY_PRINTER
+SUBDIRS += pretty-printer
+endif
+
+if ENABLE_SHIFTCOLUMN
+SUBDIRS += shiftcolumn
+endif
+
+if ENABLE_SPELLCHECK
+SUBDIRS += spellcheck
+endif
+
+if ENABLE_TABLECONVERT
+SUBDIRS += tableconvert
+endif
+
+if ENABLE_TREEBROWSER
+SUBDIRS += treebrowser
+endif
+
+if ENABLE_UPDATECHECKER
+SUBDIRS += updatechecker
+endif
+
+if ENABLE_WEBHELPER
+SUBDIRS += webhelper
+endif
+
+if ENABLE_XMLSNIPPETS
+SUBDIRS += xmlsnippets
+endif
+
EXTRA_DIST = \
build/__init__.py \
View
@@ -1,6 +1,4 @@
-if ENABLE_ADDONS
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src
plugin = addons
View
@@ -1,8 +1,6 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_ADDONS
geanyplugins_LTLIBRARIES = addons.la
-endif
addons_la_SOURCES = \
addons.h \
View
@@ -1,6 +1,4 @@
-if ENABLE_CODENAV
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src
plugin = codenav
View
@@ -1,8 +1,6 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_CODENAV
geanyplugins_LTLIBRARIES = codenav.la
-endif
codenav_la_SOURCES = \
codenavigation.c \
View
@@ -1,6 +1,4 @@
-if ENABLE_DEBUGGER
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src img
plugin = debugger
View
@@ -2,7 +2,6 @@ include $(top_srcdir)/build/vars.docs.mk
plugin = debugger
-if ENABLE_DEBUGGER
dist_plugindata_DATA = \
continue.png \
restart.gif \
@@ -13,4 +12,3 @@ dist_plugindata_DATA = \
step_over.gif \
stop.gif \
tabs.gif
-endif
View
@@ -1,9 +1,7 @@
include $(top_srcdir)/build/vars.build.mk
include $(top_srcdir)/build/vars.docs.mk
-if ENABLE_DEBUGGER
geanyplugins_LTLIBRARIES = debugger.la
-endif
plugin = debugger
View
@@ -1,6 +1,4 @@
-if ENABLE_DEVHELP
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = devhelp src data
plugin = devhelp
View
@@ -1,4 +1,3 @@
-if ENABLE_DEVHELP
include $(top_srcdir)/build/vars.docs.mk
plugin = devhelp
@@ -9,5 +8,3 @@ dist_plugindata_DATA = \
geany-devhelp-plugin.png \
home.html \
devhelp.conf
-
-endif
@@ -1,6 +1,4 @@
-if ENABLE_DEVHELP
noinst_LTLIBRARIES = libdevhelp-2.la
-endif
dh_headers = \
dh-assistant.h \
View
@@ -2,9 +2,7 @@ include $(top_srcdir)/build/vars.build.mk
plugin = devhelp
-if ENABLE_DEVHELP
geanyplugins_LTLIBRARIES = devhelp.la
-endif
devhelp_la_SOURCES = \
dhp-manpages.c \
View
@@ -1,6 +1,4 @@
-if ENABLE_GEANYDOC
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src tests
plugin = geanydoc
View
@@ -1,8 +1,6 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_GEANYDOC
geanyplugins_LTLIBRARIES = geanydoc.la
-endif
geanydoc_la_SOURCES = \
config.c \
@@ -1,6 +1,4 @@
-if ENABLE_GEANYEXTRASEL
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src
plugin = geanyextrasel
@@ -1,8 +1,6 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_GEANYEXTRASEL
geanyplugins_LTLIBRARIES = geanyextrasel.la
-endif
geanyextrasel_la_SOURCES = extrasel.c
geanyextrasel_la_LIBADD = $(COMMONLIBS)
View
@@ -1,6 +1,4 @@
-if ENABLE_GEANYGDB
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src tests
plugin = geanygdb
View
@@ -1,10 +1,8 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_GEANYGDB
geanygdbdir = $(libexecdir)/geany-plugins/geanygdb
geanyplugins_LTLIBRARIES = geanygdb.la
geanygdb_PROGRAMS = ttyhelper
-endif
geanygdb_la_SOURCES = \
gdb-io.h \
View
@@ -1,6 +1,4 @@
-if ENABLE_GEANYGENDOC
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src docs data
plugin = geanygendoc
@@ -1,4 +1,3 @@
-if ENABLE_GEANYGENDOC
include $(top_srcdir)/build/vars.docs.mk
plugin = geanygendoc
@@ -7,5 +6,3 @@ filetypesdir = $(plugindatadir)/filetypes
dist_filetypes_DATA = \
c.conf \
vala.conf
-
-endif
@@ -1,4 +1,3 @@
-if ENABLE_GEANYGENDOC
include $(top_srcdir)/build/vars.docs.mk
plugin = geanygendoc
pluginhtmldocdir = $(plugindocdir)/html
@@ -17,5 +16,3 @@ if BUILD_RST
manual.html: manual.rst manual.css
$(AM_V_GEN) $(RST2HTML) -d --strict --stylesheet-path manual.css $< $@
endif BUILD_RST
-
-endif ENABLE_GEANYGENDOC
@@ -1,9 +1,7 @@
include $(top_srcdir)/build/vars.build.mk
plugin = geanygendoc
-if ENABLE_GEANYGENDOC
geanyplugins_LTLIBRARIES = geanygendoc.la
-endif
geanygendoc_la_SOURCES = \
ggd.c \
@@ -1,6 +1,4 @@
-if ENABLE_GEANYINSERTNUM
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src
plugin = geanyinsertnum
@@ -1,8 +1,6 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_GEANYINSERTNUM
geanyplugins_LTLIBRARIES = geanyinsertnum.la
-endif
geanyinsertnum_la_SOURCES = insertnum.c
geanyinsertnum_la_LIBADD = $(COMMONLIBS)
View
@@ -1,6 +1,4 @@
-if ENABLE_GEANYLATEX
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src doc
plugin = geanylatex
@@ -1,4 +1,3 @@
-if ENABLE_GEANYLATEX
include $(top_srcdir)/build/vars.docs.mk
dist_plugindoc_DATA = \
@@ -17,5 +16,3 @@ dist_plugindoc_DATA = \
img/latexwizard.png \
img/plugin_manager.png \
img/toolbar.png
-
-endif
@@ -1,8 +1,6 @@
include $(top_srcdir)/build/vars.build.mk
-if ENABLE_GEANYLATEX
geanyplugins_LTLIBRARIES = geanylatex.la
-endif
geanylatex_la_SOURCES = \
bibtex.c \
View
@@ -1,6 +1,4 @@
-if ENABLE_GEANYLIPSUM
include $(top_srcdir)/build/vars.auxfiles.mk
-endif
SUBDIRS = src
plugin = geanylipsum
Oops, something went wrong.

0 comments on commit f3acbb1

Please sign in to comment.