mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-20 02:30:23 +02:00
Use AM_SILENT_RULES to pare down build output, ignore auto-generated files
* .gitignore: Ignore extra gnulib headers. * am/snarf: Silent SNARF command * am/guilec: Silent GUILEC command * configure.ac: Use AM_SILENT_RULES when available * guile-readline/Makefile.am: * libguile/Makefile.am: * srfi/Makefile.am: * test-suite/standalone/Makefile.am: Silence snarf output
This commit is contained in:
parent
24deb6d018
commit
a572fc95f9
8 changed files with 52 additions and 27 deletions
|
@ -19,6 +19,8 @@
|
|||
## write to the Free Software Foundation, Inc., 51 Franklin Street,
|
||||
## Fifth Floor, Boston, MA 02110-1301 USA
|
||||
|
||||
include $(top_srcdir)/am/snarf
|
||||
|
||||
AUTOMAKE_OPTIONS = gnu
|
||||
|
||||
## Prevent automake from adding extra -I options
|
||||
|
@ -53,6 +55,7 @@ gen_scmconfig_SOURCES = gen-scmconfig.c
|
|||
## Override default rule; this should be compiled for BUILD host.
|
||||
## For some reason, OBJEXT does not include the dot
|
||||
gen-scmconfig.$(OBJEXT): gen-scmconfig.c
|
||||
$(AM_V_GEN) \
|
||||
if [ "$(cross_compiling)" = "yes" ]; then \
|
||||
$(CC_FOR_BUILD) $(DEFS) $(DEFAULT_INCLUDES) $(AM_CPPFLAGS) -c -o $@ $<; \
|
||||
else \
|
||||
|
@ -61,7 +64,8 @@ gen-scmconfig.$(OBJEXT): gen-scmconfig.c
|
|||
|
||||
## Override default rule; this should run on BUILD host.
|
||||
gen-scmconfig$(EXEEXT): $(gen_scmconfig_OBJECTS) $(gen_scmconfig_DEPENDENCIES)
|
||||
@rm -f gen-scmconfig$(EXEEXT)
|
||||
$(AM_V_GEN) \
|
||||
rm -f gen-scmconfig$(EXEEXT); \
|
||||
if [ "$(cross_compiling)" = "yes" ]; then \
|
||||
$(CCLD_FOR_BUILD) -o $@ $(gen_scmconfig_OBJECTS); \
|
||||
else \
|
||||
|
@ -69,18 +73,20 @@ gen-scmconfig$(EXEEXT): $(gen_scmconfig_OBJECTS) $(gen_scmconfig_DEPENDENCIES)
|
|||
fi
|
||||
|
||||
scmconfig.h: ${top_builddir}/config.h gen-scmconfig$(EXEEXT)
|
||||
rm -f scmconfig.h.tmp
|
||||
cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp
|
||||
./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp
|
||||
chmod 444 scmconfig.h.tmp
|
||||
rm -f scmconfig.h
|
||||
mv scmconfig.h.tmp scmconfig.h
|
||||
$(AM_V_GEN)(rm -f scmconfig.h.tmp; \
|
||||
cat $(srcdir)/scmconfig.h.top > scmconfig.h.tmp; \
|
||||
./gen-scmconfig$(EXEEXT) >> scmconfig.h.tmp; \
|
||||
chmod 444 scmconfig.h.tmp; \
|
||||
rm -f scmconfig.h; \
|
||||
mv scmconfig.h.tmp scmconfig.h)
|
||||
|
||||
|
||||
guile_filter_doc_snarfage_SOURCES = c-tokenize.c
|
||||
|
||||
## Override default rule; this should be compiled for BUILD host.
|
||||
## For some reason, OBJEXT does not include the dot
|
||||
c-tokenize.$(OBJEXT): c-tokenize.c
|
||||
$(AM_V_GEN) \
|
||||
if [ "$(cross_compiling)" = "yes" ]; then \
|
||||
$(CC_FOR_BUILD) $(DEFS) $(AM_CPPFLAGS) -c -o $@ $<; \
|
||||
else \
|
||||
|
@ -89,7 +95,8 @@ c-tokenize.$(OBJEXT): c-tokenize.c
|
|||
|
||||
## Override default rule; this should run on BUILD host.
|
||||
guile_filter_doc_snarfage$(EXEEXT): $(guile_filter_doc_snarfage_OBJECTS) $(guile_filter_doc_snarfage_DEPENDENCIES)
|
||||
@rm -f guile_filter_doc_snarfage$(EXEEXT)
|
||||
$(AM_V_GEN) \
|
||||
rm -f guile_filter_doc_snarfage$(EXEEXT); \
|
||||
if [ "$(cross_compiling)" = "yes" ]; then \
|
||||
$(CCLD_FOR_BUILD) -o $@ $(guile_filter_doc_snarfage_OBJECTS); \
|
||||
else \
|
||||
|
@ -406,7 +413,7 @@ EXTRA_DOT_DOC_FILES = @EXTRA_DOT_DOC_FILES@
|
|||
DOT_I_FILES = vm-i-system.i vm-i-scheme.i vm-i-loader.i
|
||||
|
||||
.c.i:
|
||||
$(GREP) '^VM_DEFINE' $< > $@
|
||||
$(AM_V_GEN)$(GREP) '^VM_DEFINE' $< > $@
|
||||
|
||||
BUILT_SOURCES = cpp_err_symbols.c cpp_sig_symbols.c libpath.h \
|
||||
version.h scmconfig.h \
|
||||
|
@ -601,16 +608,14 @@ EXTRA_DIST = ChangeLog-scm ChangeLog-threads \
|
|||
## usual @...@, so autoconf doesn't go and substitute the values
|
||||
## directly into the left-hand sides of the sed substitutions. *sigh*
|
||||
version.h: version.h.in $(top_builddir)/config.status
|
||||
sed < $(srcdir)/version.h.in > $@.tmp \
|
||||
$(AM_V_GEN)sed < $(srcdir)/version.h.in > $@.tmp \
|
||||
-e s:@-GUILE_MAJOR_VERSION-@:${GUILE_MAJOR_VERSION}: \
|
||||
-e s:@-GUILE_MINOR_VERSION-@:${GUILE_MINOR_VERSION}: \
|
||||
-e s:@-GUILE_MICRO_VERSION-@:${GUILE_MICRO_VERSION}: \
|
||||
-e s:@-GUILE_EFFECTIVE_VERSION-@:${GUILE_EFFECTIVE_VERSION}:
|
||||
mv $@.tmp $@
|
||||
-e s:@-GUILE_EFFECTIVE_VERSION-@:${GUILE_EFFECTIVE_VERSION}: && mv $@.tmp $@
|
||||
|
||||
## FIXME: Consider using timestamp file, to avoid unnecessary rebuilds.
|
||||
libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
||||
@echo "Generating libpath.h..."
|
||||
@rm -f libpath.tmp
|
||||
@echo '/* generated by Makefile */' > libpath.tmp
|
||||
@echo '#define SCM_PKGDATA_DIR "$(pkgdatadir)"' >> libpath.tmp
|
||||
|
@ -649,18 +654,21 @@ libpath.h: $(srcdir)/Makefile.in $(top_builddir)/config.status
|
|||
@echo ' { "CFLAGS", "@GUILE_CFLAGS@" }, \' >> libpath.tmp
|
||||
@echo ' { "buildstamp", "'"`date`"'" }, \' >> libpath.tmp
|
||||
@echo '}' >> libpath.tmp
|
||||
@mv libpath.tmp libpath.h
|
||||
$(AM_V_GEN)mv libpath.tmp libpath.h
|
||||
|
||||
|
||||
snarfcppopts = $(DEFS) $(AM_CPPFLAGS) $(CPPFLAGS) $(CFLAGS)
|
||||
|
||||
SUFFIXES = .x .doc
|
||||
|
||||
AM_V_FILTER = $(AM_V_FILTER_$(V))
|
||||
AM_V_FILTER_ = $(AM_V_FILTER_$(AM_DEFAULT_VERBOSITY))
|
||||
AM_V_FILTER_0 = @echo " FILTER" $@;
|
||||
|
||||
.c.x:
|
||||
./guile-snarf -o $@ $< $(snarfcppopts)
|
||||
$(AM_V_SNARF)$(GUILE_SNARF) -o $@ $< $(snarfcppopts)
|
||||
.c.doc:
|
||||
-$(AWK) -f ./guile-func-name-check $<
|
||||
(./guile-snarf-docs $(snarfcppopts) $< | \
|
||||
./guile_filter_doc_snarfage$(EXEEXT) --filter-snarfage) > $@ || { rm $@; false; }
|
||||
-$(AM_V_FILTER)$(AWK) -f ./guile-func-name-check $< && (./guile-snarf-docs $(snarfcppopts) $< | ./guile_filter_doc_snarfage$(EXEEXT) --filter-snarfage) > $@ || { rm $@; false; }
|
||||
|
||||
$(DOT_X_FILES) $(EXTRA_DOT_X_FILES): scmconfig.h snarf.h guile-snarf.in
|
||||
|
||||
|
@ -678,7 +686,7 @@ guile.texi: $(alldotdocfiles) guile$(EXEEXT)
|
|||
$(dotdoc2texi) --manual > $@ || { rm $@; false; }
|
||||
|
||||
guile-procedures.texi: $(alldotdocfiles) guile$(EXEEXT)
|
||||
$(dotdoc2texi) > $@ || { rm $@; false; }
|
||||
$(AM_V_GEN)$(dotdoc2texi) > $@ || { rm $@; false; }
|
||||
|
||||
if HAVE_MAKEINFO
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue