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
ec735cae
Commit
ec735cae
authored
Feb 09, 2012
by
Ian Lynagh
Browse files
Don't use TOP_ABS in Makefile rules
The : in c:/foo/bar on Windows confuses make.
parent
c41b9a84
Changes
1
Hide whitespace changes
Inline
Side-by-side
testsuite/mk/boilerplate.mk
View file @
ec735cae
...
...
@@ -120,6 +120,9 @@ ifeq "$(AR)" ""
AR
=
ar
endif
# Be careful when using this. On Windows it ends up looking like
# c:/foo/bar which confuses make, as make thinks that the : is Makefile
# syntax
TOP_ABS
:=
$(
abspath
$(TOP)
)
$(eval
$(call
canonicalise,TOP_ABS))
...
...
@@ -135,15 +138,15 @@ PYTHON = python
# the results, and emits a little .mk file with make bindings for the values.
# This way we cache the results for different values of $(TEST_HC)
$(TOP
_ABS
)/mk/ghc-config
:
$(TOP
_ABS
)/mk/ghc-config.hs
$(TOP)/mk/ghc-config
:
$(TOP)/mk/ghc-config.hs
"
$(TEST_HC)
"
--make
-o
$@
$<
empty
=
space
=
$(empty)
$(empty)
ghc-config-mk
=
$(TOP
_ABS
)
/mk/ghcconfig
$(
subst
$(space)
,_,
$(
subst
/,_,
$(
subst
\,
_,
$(TEST_HC)
)))
.mk
ghc-config-mk
=
$(TOP)
/mk/ghcconfig
$(
subst
$(space)
,_,
$(
subst
/,_,
$(
subst
\,
_,
$(TEST_HC)
)))
.mk
$(ghc-config-mk)
:
$(TOP
_ABS
)/mk/ghc-config
$(TOP
_ABS
)
/mk/ghc-config
"
$(TEST_HC)
"
>
"
$@
"
||
$(RM)
"
$@
"
$(ghc-config-mk)
:
$(TOP)/mk/ghc-config
$(TOP)
/mk/ghc-config
"
$(TEST_HC)
"
>
"
$@
"
||
$(RM)
"
$@
"
include
$(ghc-config-mk)
...
...
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