Skip to content
Snippets Groups Projects
Commit 3aef7e29 authored by Simon Marlow's avatar Simon Marlow
Browse files

[project @ 2000-06-14 11:07:47 by simonmar]

move "boot :: all" after target.mk, so we make dependencies in the
current directory before going on to build the driver.  This still
doesn't really work because GNU make doesn't re-load the .depend file,
but it's heading in the right direction.

also, clean ghc-inplace and ghc.
parent 343b5e74
No related merge requests found
#-----------------------------------------------------------------------------
# $Id: Makefile,v 1.33 2000/06/14 10:27:07 simonmar Exp $
# $Id: Makefile,v 1.34 2000/06/14 11:07:47 simonmar Exp $
#
TOP=..
......@@ -21,9 +21,6 @@ LINK = ghc
SUBDIRS = mangler split stats
# we need the driver for generating dependencies...
boot :: all
# -----------------------------------------------------------------------------
# Create driver configuration
......@@ -85,6 +82,8 @@ ghc-inplace : ghc
echo exec $(FPTOOLS_TOP_ABS)/ghc/driver/ghc -B$(FPTOOLS_TOP_ABS) $$\* >>$@
chmod 755 $@
CLEAN_FILES += ghc-inplace
# -----------------------------------------------------------------------------
# package configuration files...
......@@ -115,6 +114,9 @@ INSTALL_DATAS += ghc-usage.txt
include $(TOP)/mk/target.mk
# we need the driver for generating dependencies...
boot :: all
# -----------------------------------------------------------------------------
# Create link to from ghc-x.xx to ghc...
......@@ -131,6 +133,8 @@ $(LINK) : $(HS_PROG)
exit 1; \
fi;
CLEAN_FILES += $(LINK)
install ::
@if ( $(PERL) -e '$$fn="$(bindir)/$(LINK)"; exit ((! -f $$fn || -l $$fn) ? 0 : 1);' ); then \
echo "Creating a symbol link from $(HS_PROG) to $(LINK) in $(bindir)"; \
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment