Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
3fe733ed
Commit
3fe733ed
authored
Oct 27, 2000
by
simonmar
Browse files
[project @ 2000-10-27 16:30:02 by simonmar]
build as ghc-$(ProjectVersion), link to ghc (as per driver)
parent
e6a5914b
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc/compiler/Makefile
View file @
3fe733ed
# -----------------------------------------------------------------------------
# $Id: Makefile,v 1.10
0
2000/10/27 16:
24:31
simonmar Exp $
# $Id: Makefile,v 1.10
1
2000/10/27 16:
30:02
simonmar Exp $
TOP
=
..
include
$(TOP)/mk/boilerplate.mk
...
...
@@ -18,11 +18,13 @@ WAYS=$(GhcCompilerWays)
# equivalent of `env' if it doesn't exist locally).
#
ifneq
"$(way)" "dll"
HS_PROG
=
ghc
$(_way)
HS_PROG
=
ghc
$(_way)
-
$(ProjectVersion)
else
HS_PROG
=
ghc
HS_PROG
=
ghc
-
$(ProjectVersion)
endif
LINK
=
ghc
# -----------------------------------------------------------------------------
# Create compiler configuration
...
...
@@ -385,6 +387,35 @@ ghc-inplace : ghc
CLEAN_FILES
+=
ghc-inplace
# -----------------------------------------------------------------------------
# Create link to from ghc-x.xx to ghc...
all
::
$(LINK)
$(LINK)
:
$(HS_PROG)
@
if
(
$(PERL)
-e
'$$fn="
$(LINK)
"; exit ((! -f $$fn || -l $$fn) ? 0 : 1);'
)
;
then
\
echo
"Creating a symbolic link from
$(HS_PROG)
to
$(LINK)
"
;
\
$(RM)
$(LINK)
;
\
$(LN_S)
$(HS_PROG)
$(LINK)
;
\
else
\
echo
"Creating a symbolic link from
$(HS_PROG)
to
$(LINK)
failed:
\`
$(LINK)
' already exists"
;
\
echo
"Perhaps remove
\`
$(LINK)
' manually?"
;
\
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)
"
;
\
$(RM)
$(bindir)
/
$(LINK)
;
\
$(LN_S)
$(HS_PROG)
$(bindir)
/
$(LINK)
;
\
else
\
echo
"Creating a symbol link from
$(HS_PROG)
to
$(LINK)
in
$(bindir)
failed:
\`
$(bindir)
/
$(LINK)
' already exists"
;
\
echo
"Perhaps remove
\`
$(bindir)
/
$(LINK)
' manually?"
;
\
exit
1
;
\
fi
;
#-----------------------------------------------------------------------------
# install
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment