Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Alex D
GHC
Commits
41656304
Commit
41656304
authored
May 19, 2007
by
Ian Lynagh
Browse files
Refactor libraries/Makefile a bit; also, we don't need a bootstrapping pretty
parent
6bcc6f20
Changes
1
Hide whitespace changes
Inline
Side-by-side
libraries/Makefile
View file @
41656304
...
...
@@ -96,7 +96,10 @@ CONFIGURE_OPTS += --enable-split-objs
CONFIGURE_STAMP_EXTRAS
:=
$(CONFIGURE_STAMP_EXTRAS)
-splitting
endif
BOOTSTRAPPING_STAMPS
=
$(
addprefix
stamp/bootstrapping.,Cabal filepath pretty
)
BOOTSTRAP_LIBS
=
Cabal filepath
BOOTSTRAP_STAMPS
=
$(
addprefix
stamp/bootstrapping.,
$(BOOTSTRAP_LIBS)
)
BOOTSTRAP_INC_1_UP
=
$(
addprefix
-i
../bootstrapping.,
$(BOOTSTRAP_LIBS)
)
BOOTSTRAP_INC_2_UP
=
$(
addprefix
-i
../../bootstrapping.,
$(BOOTSTRAP_LIBS)
)
.PHONY
:
subdirs
...
...
@@ -105,7 +108,7 @@ subdirs:
.PHONY
:
boot
boot
:
$(BOOTSTRAP
PING
_STAMPS) ifBuildable/ifBuildable
\
boot
:
$(BOOTSTRAP_STAMPS) ifBuildable/ifBuildable
\
$(foreach SUBDIR
,
$(SUBDIRS)
,
$(SUBDIR)/setup/Setup)
\
installPackage/installPackage
...
...
@@ -116,24 +119,20 @@ boot: $(BOOTSTRAPPING_STAMPS) ifBuildable/ifBuildable \
# We ought to be depending on %/Setup.*hs, but make makes that difficult.
$(foreach SUBDIR,$(SUBDIRS),$(SUBDIR)/setup/Setup)
:
\
%/setup/Setup: $(BOOTSTRAP
PING
_STAMPS)
%/setup/Setup: $(BOOTSTRAP_STAMPS)
-
$(RM)
-rf
$*
/setup
mkdir
$*
/setup
$(CP)
$*
/Setup.
*
hs
$*
/setup
cd
$*
/setup
&&
$(GHC)
-i
../../bootstrapping.Cabal
\
-i
../../bootstrapping.filepath
\
-i
../../bootstrapping.pretty
\
-Wall
-cpp
--make
Setup.
*
hs
-o
Setup
cd
$*
/setup
&&
$(GHC)
-Wall
-cpp
--make
Setup.
*
hs
-o
Setup
\
$(BOOTSTRAP_INC_2_UP)
installPackage/installPackage
:
installPackage.hs $(BOOTSTRAP
PING
_STAMPS)
installPackage/installPackage
:
installPackage.hs $(BOOTSTRAP_STAMPS)
-
$(RM)
-rf
installPackage
mkdir
installPackage
$(CP)
installPackage.hs installPackage/
cd
installPackage
&&
$(GHC)
-Wall
-cpp
\
--make
installPackage
-o
installPackage
\
-i
../bootstrapping.Cabal
\
-i
../bootstrapping.filepath
\
-i
../bootstrapping.pretty
$(BOOTSTRAP_INC_1_UP)
ifBuildable/ifBuildable
:
ifBuildable.hs
-
$(RM)
-rf
ifBuildable
...
...
@@ -141,7 +140,7 @@ ifBuildable/ifBuildable: ifBuildable.hs
$(CP)
ifBuildable.hs ifBuildable/
cd
ifBuildable
&&
$(GHC)
-Wall
--make
ifBuildable
-o
ifBuildable
$(BOOTSTRAP
PING
_STAMPS)
:
stamp/bootstrapping.%:
$(BOOTSTRAP_STAMPS)
:
stamp/bootstrapping.%:
$(RM)
-rf
bootstrapping.
$*
$(CP)
-R
$*
bootstrapping.
$*
$(FIND)
bootstrapping.
$*
\(
-name
"*.o"
-o
-name
"*.hi"
\)
\
...
...
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