Fixes excessive make realcleans
authorBarret Rhoden <brho@cs.berkeley.edu>
Thu, 15 Dec 2011 21:38:22 +0000 (13:38 -0800)
committerBarret Rhoden <brho@cs.berkeley.edu>
Thu, 15 Dec 2011 21:38:22 +0000 (13:38 -0800)
Since b8738ad0, every time you make, you'd do a make realclean (at least
on x86), since the $@ wasn't changed when the target had "real-" added
to it.

GNUmakefile

index 0ab8677..8549aa6 100644 (file)
@@ -21,7 +21,7 @@ busted:
 endif
 
 real-$(TARGET_ARCH):
-       @if [ "$(ARCH_LINK)" != "$@" ];\
+       @if [ "$(ARCH_LINK)" != "$(TARGET_ARCH)" ];\
        then\
          $(MAKE) realclean;\
          $(MAKE) realall -j $(MAKE_JOBS);\