From 9206ed2ce2426701c97e38c46b027b89ff3b635b Mon Sep 17 00:00:00 2001
From: Matthias Schiffer <mschiffer@universe-factory.net>
Date: Thu, 7 Mar 2013 21:50:15 +0100
Subject: [PATCH] Fix single-image build with GNU Make 3.81

---
 Makefile | 10 +++++++---
 1 file changed, 7 insertions(+), 3 deletions(-)

diff --git a/Makefile b/Makefile
index db24d8da6..afe517946 100644
--- a/Makefile
+++ b/Makefile
@@ -56,6 +56,13 @@ include $(TOPDIR)/include/debug.mk
 include $(TOPDIR)/include/depends.mk
 include $(TOPDIR)/include/toplevel.mk
 
+define GluonProfile
+image/$(1): FORCE
+	+@$$(GLUONMAKE) $$@
+endef
+
+include $(GLUONDIR)/profiles.mk
+
 all: FORCE
 	+@$(GLUONMAKE) prepare
 	+@$(GLUONMAKE) images
@@ -66,9 +73,6 @@ prepare: FORCE
 images: FORCE
 	+@$(GLUONMAKE) images
 
-image/%:: FORCE
-	+@$(GLUONMAKE) $@
-
 clean: clean-gluon
 
 clean-gluon:
-- 
GitLab