From 257e13bb74c0138415652f02a057469fca6ef011 Mon Sep 17 00:00:00 2001 From: Arun Isaac Date: Wed, 8 Sep 2021 00:33:53 +0530 Subject: Makefile: Replace suffix rules with pattern rules. Suffix rules are deprecated. * Makefile.am (SUFFIXES): Delete variable. (.scm.go): Delete rule. (%.go): New rule. --- Makefile.am | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/Makefile.am b/Makefile.am index 3302776..06b411a 100644 --- a/Makefile.am +++ b/Makefile.am @@ -66,9 +66,8 @@ nobase_go_DATA = $(GOBJECTS) CLEANFILES = $(GOBJECTS) GUILE_WARNINGS = -Wunbound-variable -Warity-mismatch -Wformat -SUFFIXES = .scm .go -.scm.go: - $(GUILD_GEN)$(top_builddir)/pre-inst-env $(GUILD) compile $(GUILE_WARNINGS) -o "$@" "$<" +%.go: %.scm + $(GUILD_GEN)$(builddir)/pre-inst-env $(GUILD) compile $(GUILE_WARNINGS) -o "$@" "$<" # Building xapian/xapian.scm additionally requires the libguilexapian # shared library. -- cgit v1.2.3