From: simonmar Date: Tue, 30 Apr 2002 14:19:56 +0000 (+0000) Subject: [project @ 2002-04-30 14:19:56 by simonmar] X-Git-Tag: Approx_11550_changesets_converted~2084 X-Git-Url: http://git.megacz.com/?a=commitdiff_plain;h=c3745cc1196289c1a4c523335105e388a7f3124d;p=ghc-hetmet.git [project @ 2002-04-30 14:19:56 by simonmar] Fix for 'make -j' --- diff --git a/ghc/utils/hsc2hs/Makefile b/ghc/utils/hsc2hs/Makefile index 9c2adf1..ce890ca 100644 --- a/ghc/utils/hsc2hs/Makefile +++ b/ghc/utils/hsc2hs/Makefile @@ -1,5 +1,5 @@ # ----------------------------------------------------------------------------- -# $Id: Makefile,v 1.30 2002/01/29 18:28:49 sof Exp $ +# $Id: Makefile,v 1.31 2002/04/30 14:19:56 simonmar Exp $ TOP=../.. include $(TOP)/mk/boilerplate.mk @@ -74,12 +74,12 @@ INSTALL_DATAS += template-hsc.h # ----------------------------------------------------------------------------- # Create driver configuration -CONFIG_HS = Config.hs +CONFIG_HS = Config.hs +CLEAN_FILES += $(CONFIG_HS) +EXTRA_SRCS += $(CONFIG_HS) boot :: $(CONFIG_HS) -all :: $(CONFIG_HS) - $(CONFIG_HS) : $(FPTOOLS_TOP)/mk/config.mk Makefile @$(RM) -f $(CONFIG_HS) @echo -n "Creating $(CONFIG_HS) ... " @@ -94,16 +94,15 @@ else endif @echo done. -CLEAN_FILES += $(CONFIG_HS) - # don't recurse on 'make install' # ifeq "$(INSTALLING)" "1" -all clean distclean maintainer-clean :: +all :: $(HS_PROG) $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@ -endif -MKDEPENDHS_SRCS += $(CONFIG_HS) +clean distclean maintainer-clean :: + $(MAKE) INSTALLING=0 BIN_DIST=0 $(MFLAGS) $@ +endif include $(TOP)/mk/target.mk