1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-03 13:20:26 +02:00

Snarfing .x depends on built headers

* libguile/Makefile.am (BUILT_INCLUDES): New variable.
  (BUILT_SOURCES): Put .i and other generated .h to BUILT_INCLUDES.
  (.c.x, .c.doc): Depend on BUILT_INCLUDES.  Fixes
  https://bugs.gentoo.org/show_bug.cgi?id=590528.
This commit is contained in:
Andy Wingo 2016-08-07 12:23:50 +02:00
parent 26cf7843c6
commit edd6d6e280

View file

@ -430,9 +430,9 @@ DOT_I_FILES = vm-i-system.i vm-i-scheme.i vm-i-loader.i
.c.i: .c.i:
$(AM_V_GEN)$(GREP) '^VM_DEFINE' $< > $@ $(AM_V_GEN)$(GREP) '^VM_DEFINE' $< > $@
BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h \ BUILT_INCLUDES = $(DOT_I_FILES) scmconfig.h
scmconfig.h \ BUILT_SOURCES = cpp-E.c cpp-SIG.c libpath.h $(BUILT_INCLUDES) \
$(DOT_I_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES) $(DOT_X_FILES) $(EXTRA_DOT_X_FILES)
# Force the generation of `guile-procedures.texi' because the top-level # Force the generation of `guile-procedures.texi' because the top-level
# Makefile expects it to be built. # Makefile expects it to be built.
@ -730,9 +730,9 @@ snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
SUFFIXES = .x .doc SUFFIXES = .x .doc
.c.x: .c.x: $(BUILT_INCLUDES)
$(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts) $(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts)
.c.doc: .c.doc: $(BUILT_INCLUDES)
$(AM_V_SNARF)./guile-snarf-docs -o $@ $< -- $(snarfcppopts) $(AM_V_SNARF)./guile-snarf-docs -o $@ $< -- $(snarfcppopts)
$(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in version.h $(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in version.h