[project @ 2002-05-28 08:38:19 by simonpj]
[ghc-hetmet.git] / Makefile
index 7b7f50e..97717f4 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -256,7 +256,7 @@ SRC_DIST_FILES += \
        aclocal.m4 acconfig.h README Makefile Makefile.config install-sh \
        mk/bootstrap.mk \
        mk/boilerplate.mk mk/config.h.in mk/config.mk.in mk/opts.mk \
-       mk/paths.mk mk/suffix.mk mk/target.mk
+       mk/paths.mk mk/package.mk mk/suffix.mk mk/target.mk
 
 dist dist-manifest dist-package :: project-check
 
@@ -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