summaryrefslogtreecommitdiffabout
path: root/gint.mk
authorSergey Poznyakoff <gray@gnu.org.ua>2011-05-27 11:15:19 (GMT)
committer Sergey Poznyakoff <gray@gnu.org.ua>2011-05-27 11:15:19 (GMT)
commitb39efd37a7fbf478072c72f82b4310c8620a4cea (patch) (side-by-side diff)
treedf820ba6952b5f59d868a3ce1811a758b7891ab5 /gint.mk
parenta5774356a1c12d1bcb55b6322710e347e1604fc9 (diff)
downloadgint-b39efd37a7fbf478072c72f82b4310c8620a4cea.tar.gz
gint-b39efd37a7fbf478072c72f82b4310c8620a4cea.tar.bz2
Fix builds without Guile.
* gint.m4: New option: doc-distrib. * gint.mk: Distribute generated files if doc-distrib was set. If not, don't distribute guile-procedures.texi and guile-procedures.txt, as this breaks builds without Guile. * guile.m4: Define GINT_COND_GUILE_OK conditional if Guile is present and selected for use. * README: Document doc-distrib.
Diffstat (limited to 'gint.mk') (more/less context) (ignore whitespace changes)
-rw-r--r--gint.mk28
1 files changed, 21 insertions, 7 deletions
diff --git a/gint.mk b/gint.mk
index 7befe5e..b8d03f3 100644
--- a/gint.mk
+++ b/gint.mk
@@ -14,11 +14,17 @@
# You should have received a copy of the GNU General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
+if GINT_COND_GUILE_OK
INCLUDES += @GUILE_INCLUDES@
+if GINT_COND_DOC_DISTRIB
+ EXTRA_DIST += $(DOT_X_FILES)
+ MAINTAINERCLEANFILES += $(DOT_X_FILES)
+else
+ DISTCLEANFILES += $(DOT_X_FILES)
+endif
BUILT_SOURCES += $(DOT_X_FILES)
-DISTCLEANFILES += $(DOT_X_FILES)
ETAGS_ARGS = --regex='/SCM_\(GLOBAL_\)?\(G?PROC\|G?PROC1\|SYMBOL\|VCELL\|CONST_LONG\).*\"\([^\"]\)*\"/\3/' \
--regex='/[ \t]*SCM_[G]?DEFINE1?[ \t]*(\([^,]*\),[^,]*/\1/'
@@ -28,17 +34,24 @@ SUFFIXES += .x
snarfcppopts = $(DEFS) $(DEFAULT_INCLUDES) $(INCLUDES) $(AM_CPPFLAGS) $(CPPFLAGS) $(AM_CFLAGS) $(CFLAGS)
if GINT_COND_DOC
-EXTRA_DIST += guile-procedures.texi guile-procedures.txt
+
+if GINT_COND_DOC_DISTRIB
+ EXTRA_DIST += guile-procedures.texi guile-procedures.txt $(DOT_DOC_FILES)
+ MAINTAINERCLEANFILES += \
+ $(DOT_DOC_FILES)\
+ guile-procedures.texi\
+ guile-procedures.txt
+else
+ DISTCLEANFILES += \
+ $(DOT_DOC_FILES)\
+ guile-procedures.texi\
+ guile-procedures.txt
+endif
site_DATA += guile-procedures.txt
BUILT_SOURCES += $(DOT_DOC_FILES) guile-procedures.texi
-DISTCLEANFILES += \
- $(DOT_DOC_FILES)\
- guile-procedures.texi\
- guile-procedures.txt
-
SUFFIXES += .doc
if GINT_COND_SNARF_DOC_FILTER
@@ -75,4 +88,5 @@ endif
## Add -MG to make the .x magic work with auto-dep code.
MKDEP = $(CC) -M -MG $(DEFS) $(INCLUDES) $(CPPFLAGS) $(CFLAGS)
+endif

Return to:

Send suggestions and report system problems to the System administrator.