[config] Min automake 1.11, support silent rules on automake < 1.13
This commit is contained in:
parent
26c22144fc
commit
c7855e7c55
|
@ -7,7 +7,9 @@ AC_CONFIG_SRCDIR([config.h.in])
|
|||
AC_CONFIG_MACRO_DIR([m4])
|
||||
AC_CONFIG_AUX_DIR([build-aux])
|
||||
AC_CONFIG_HEADERS([config.h])
|
||||
AM_INIT_AUTOMAKE([foreign subdir-objects])
|
||||
AM_INIT_AUTOMAKE([foreign subdir-objects 1.11])
|
||||
AM_SILENT_RULES([no])
|
||||
|
||||
dnl Requires autoconf 2.60
|
||||
AC_USE_SYSTEM_EXTENSIONS
|
||||
|
||||
|
|
|
@ -139,10 +139,14 @@ EXTRA_DIST = \
|
|||
%_hash.h: %.gperf
|
||||
$(AM_V_GEN)$(GPERF) --output-file=$@ $<
|
||||
|
||||
# silent rules for antlr
|
||||
antlr_verbose = $(antlr_verbose_@AM_V@)
|
||||
antlr_verbose_ = $(antlr_verbose_@AM_DEFAULT_V@)
|
||||
antlr_verbose_0 = @echo " GEN " $< "products";
|
||||
|
||||
# ANTLR grammar products
|
||||
%.tokens %.c %Lexer.c %Parser.c %Lexer.h %Parser.h %.h: %.g
|
||||
@$(AM_V_P) || echo " GEN " $< "products"
|
||||
$(AM_V_at)$(ANTLR) -Xconversiontimeout 30000 $(ANTLR_OPTIONS) -fo . $<
|
||||
$(antlr_verbose)$(ANTLR) -Xconversiontimeout 30000 $(ANTLR_OPTIONS) -fo . $<
|
||||
|
||||
# ANTLR dependency files (bypass circular dependency of .g on .tokens)
|
||||
%.u: %.g
|
||||
|
|
Loading…
Reference in New Issue