[project @ 2002-05-01 13:11:24 by simonmar]
[ghc-hetmet.git] / Makefile
index f3582f8..97717f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -324,14 +324,15 @@ ifeq "$(HAPPY)" "$(FPTOOLS_TOP_ABS)/happy/src/happy-inplace"
 all :: $(FPTOOLS_TOP_ABS)/happy/src/happy-inplace
 
 $(FPTOOLS_TOP_ABS)/happy/src/happy-inplace : glafp-utils
-       cd happy && make boot all
+       $(MAKE) -C happy boot all
 endif
 
 all ::
        @case '${MFLAGS}' in *-[ik]*) x_on_err=0;; *-r*[ik]*) x_on_err=0;; *) x_on_err=1;; esac; \
        for i in $(SUBDIRS); do \
           if [ -d $$i ]; then \
-             $(MAKE) -C $$i boot all; \
+             $(MAKE) -C $$i boot; \
+             $(MAKE) -C $$i all; \
              if [ $$? -eq 0 -o $$x_on_err -eq 0 ] ;  then true; else exit 1; fi; \
              fi; \
        done