]> git.donarmstrong.com Git - lilypond.git/blobdiff - make/stepmake.make
patch::: 1.4.1.jcn2
[lilypond.git] / make / stepmake.make
index 6d25f54696926dc714e0cc60fe774e471c46cc2e..d92fd1ff662b3871ed19f2596c392bdd65c1b9c3 100644 (file)
@@ -65,7 +65,8 @@ LOCALSTEPMAKE_TEMPLATES:= generic $(LOCALSTEPMAKE_TEMPLATES)
 # Don't try to outsmart us, you puny computer!
 # Well, UGH.  This only removes builtin rules from
 # subsequent $(MAKE)s, *not* from the current run!
-ifeq (0,${MAKELEVEL})
+ifeq ($(BUILTINS_REMOVED),)
+  export BUILTINS_REMOVED = yes
   MAKE:=$(MAKE) --no-builtin-rules
   include $(stepdir)/no-builtin-rules.make
 endif