a5bd9f6
From e07d75a6383eee9001fe03500dea921ca257bbf7 Mon Sep 17 00:00:00 2001
a5bd9f6
From: Andrey Borzenkov <arvidjaar@gmail.com>
a5bd9f6
Date: Sun, 20 Jan 2013 23:44:42 +0100
a5bd9f6
Subject: [PATCH 121/364] 	* conf/Makefile.common: Fix autogen rules to
a5bd9f6
 pass definition 	files on stdin; Makefile.util.am needs
a5bd9f6
 Makefile.utilgcry.def
a5bd9f6
a5bd9f6
---
a5bd9f6
 ChangeLog            | 5 +++++
a5bd9f6
 conf/Makefile.common | 6 +++---
a5bd9f6
 2 files changed, 8 insertions(+), 3 deletions(-)
a5bd9f6
a5bd9f6
diff --git a/ChangeLog b/ChangeLog
a5bd9f6
index e82ee8d..4c21ea0 100644
a5bd9f6
--- a/ChangeLog
a5bd9f6
+++ b/ChangeLog
a5bd9f6
@@ -1,3 +1,8 @@
a5bd9f6
+2013-01-20  Andrey Borzenkov <arvidjaar@gmail.com>
a5bd9f6
+
a5bd9f6
+	* conf/Makefile.common: Fix autogen rules to pass definition
a5bd9f6
+	files on stdin; Makefile.util.am needs Makefile.utilgcry.def
a5bd9f6
+
a5bd9f6
 2013-01-20  Leif Lindholm  <leif.lindholm@arm.com>
a5bd9f6
 
a5bd9f6
 	* include/grub/elf.h: Update ARM definitions based on binutils.
a5bd9f6
diff --git a/conf/Makefile.common b/conf/Makefile.common
a5bd9f6
index 5b9cd92..75c0a5e 100644
a5bd9f6
--- a/conf/Makefile.common
a5bd9f6
+++ b/conf/Makefile.common
a5bd9f6
@@ -169,12 +169,12 @@ $(top_srcdir)/Makefile.tpl: $(top_srcdir)/gentpl.py
a5bd9f6
 	mv $@.new $@
a5bd9f6
 
a5bd9f6
 .PRECIOUS: $(top_srcdir)/Makefile.util.am
a5bd9f6
-$(top_srcdir)/Makefile.util.am: $(top_srcdir)/Makefile.util.def $(top_srcdir)/Makefile.tpl
a5bd9f6
-	autogen -T $(top_srcdir)/Makefile.tpl $< | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
a5bd9f6
+$(top_srcdir)/Makefile.util.am: $(top_srcdir)/Makefile.util.def $(top_srcdir)/Makefile.utilgcry.def $(top_srcdir)/Makefile.tpl
a5bd9f6
+	cat $(top_srcdir)/Makefile.util.def $(top_srcdir)/Makefile.utilgcry.def | autogen -T $(top_srcdir)/Makefile.tpl | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
a5bd9f6
 	mv $@.new $@
a5bd9f6
 
a5bd9f6
 .PRECIOUS: $(top_srcdir)/grub-core/Makefile.core.am
a5bd9f6
 $(top_srcdir)/grub-core/Makefile.core.am: $(top_srcdir)/grub-core/Makefile.core.def $(top_srcdir)/grub-core/Makefile.gcry.def $(top_srcdir)/Makefile.tpl
a5bd9f6
 	if [ "x$$GRUB_CONTRIB" != x ]; then echo "You need to run ./autogen.sh manually." >&2; exit 1; fi
a5bd9f6
-	autogen -T $(top_srcdir)/Makefile.tpl $(top_srcdir)/grub-core/Makefile.core.def $(top_srcdir)/grub-core/Makefile.gcry.def | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
a5bd9f6
+	cat $(top_srcdir)/grub-core/Makefile.core.def $(top_srcdir)/grub-core/Makefile.gcry.def | autogen -T $(top_srcdir)/Makefile.tpl | sed -e '/^$$/{N;/^\\n$$/D;}' > $@.new || (rm -f $@.new; exit 1)
a5bd9f6
 	mv $@.new $@
a5bd9f6
-- 
a5bd9f6
1.8.1.4
a5bd9f6