From 987fdf2c22e675d57cd929dbf93574658d2aa296 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Niels=20M=C3=B6ller?= <nisse@lysator.liu.se>
Date: Fri, 15 Feb 2002 14:20:59 +0100
Subject: [PATCH] (%.asm): Use a GNU pattern rule, to make %.o depend on both
 %.asm and asm.m4.

Rev: src/nettle/Makefile.am:1.32
---
 Makefile.am | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/Makefile.am b/Makefile.am
index 43446d37..4e50d0a9 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -55,7 +55,8 @@ SUFFIXES = .asm
 # can be overridden during development, eg. "make RM_TMP=: aes.o"
 RM_TMP = rm -f
 
-.asm.o:
+# FIXME: How to write this without using GNU make features?
+%.o: %.asm asm.m4
 	$(M4) `test -f $< || echo '$(srcdir)/'`$< >tmp-$*.s
 	$(COMPILE) -c tmp-$*.s -o $@
 	$(RM_TMP) tmp-$*.s
-- 
GitLab