From 1b7ccf1fb0c78347d44104de7544cdf6d5a2f281 Mon Sep 17 00:00:00 2001 From: Masatake YAMATO Date: Mon, 15 Oct 2018 04:28:08 +0900 Subject: [PATCH] buildsys: don't use %.c to in a suffix rule Suggested by @b4n and @mqudsi in #1554. Signed-off-by: Masatake YAMATO --- Makefile.am | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 81bfe5917b..f71f8e31f7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -99,8 +99,10 @@ optlib2c_verbose = $(optlib2c_verbose_@AM_V@) optlib2c_verbose_ = $(optlib2c_verbose_@AM_DEFAULT_V@) optlib2c_verbose_0 = @echo OPTLIB2C " $@"; OPTLIB2C = $(srcdir)/misc/optlib2c -%.c: %.ctags $(OPTLIB2C) Makefile +SUFFIXES += .ctags +.ctags.c: $(optlib2c_verbose)$(OPTLIB2C) $< > $@ +$(OPTLIB2C_INPUT): $(OPTLIB2C) Makefile endif dist_ctags_SOURCES = $(ALL_HEADS) $(ALL_SRCS)