diff --git a/Makefile b/Makefile
index db24d8da60862cd35c9e71afb3784644e2ab6294..afe5179468861cf2379545623a4bef92568faae9 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: