Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
3388ec10
Commit
3388ec10
authored
Sep 27, 2009
by
Ian Lynagh
Browse files
Add a $(MAKE_RESTARTS) check to ghc.mk
This should catch make going into an infinite loop.
parent
e946a8b1
Changes
1
Hide whitespace changes
Inline
Side-by-side
ghc.mk
View file @
3388ec10
...
@@ -85,6 +85,14 @@
...
@@ -85,6 +85,14 @@
default
:
all
default
:
all
# Catch make if it runs away into an infinite loop
ifeq
"$(MAKE_RESTARTS)" ""
else
ifeq
"$(MAKE_RESTARTS)" "1"
else
ifeq
"$(MAKE_RESTARTS)" "2"
else
$(error
Make
has
restarted
itself
$(MAKE_RESTARTS)
times;
is
there
a
makefile
bug?)
endif
# Just bring makefiles up to date:
# Just bring makefiles up to date:
.PHONY
:
just-makefiles
.PHONY
:
just-makefiles
just-makefiles
:
just-makefiles
:
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a 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