Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
GHC
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
4,245
Issues
4,245
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
397
Merge Requests
397
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Code Review
Insights
Issue
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
2e52057a
Commit
2e52057a
authored
Jul 09, 2015
by
thomie
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Build system: comments only [skip ci]
parent
946c8b10
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
16 additions
and
5 deletions
+16
-5
ghc.mk
ghc.mk
+13
-2
rules/build-package-data.mk
rules/build-package-data.mk
+2
-2
rules/haddock.mk
rules/haddock.mk
+1
-1
No files found.
ghc.mk
View file @
2e52057a
...
...
@@ -48,6 +48,8 @@
# o Build utils/ghc-cabal
# o Build utils/ghc-pkg
# o Build utils/hsc2hs
# o Build utils/genprimopcode
# o Build utils/deriveConstants
# * For each package:
# o configure, generate package-data.mk and inplace-pkg-config
# o register each package into inplace/lib/package.conf
...
...
@@ -369,7 +371,7 @@ PACKAGES_STAGE1 += $1
endef
$(eval
$(call
foreachLibrary,addLibraryForCleaning))
else
else
# CLEANING
# Packages that are built by stage0. These packages are dependencies of
# programs such as GHC and ghc-pkg, that we do not assume the stage0
...
...
@@ -475,7 +477,7 @@ else
INSTALL_PACKAGES
:=
$(SUPERSIZE_INSTALL_PACKAGES)
endif
endif
endif
# CLEANING
# -------------------------------------------
# Dependencies between package-data.mk files
...
...
@@ -622,6 +624,10 @@ BUILD_DIRS += bindisttest
BUILD_DIRS
+=
utils/genapply
endif
# When cleaning, don't add any library packages to BUILD_DIRS. We include
# ghc.mk files for all BUILD_DIRS, but they don't exist until after running
# `./boot`. Running `make clean` before anything else, as well as running
# `make maintainer-clean` twice, should work.
ifneq
"$(CLEANING)" "YES"
# These are deliberately in reverse order, so as to ensure that
# there is no need to have them in dependency order. That's important
...
...
@@ -632,6 +638,10 @@ BUILD_DIRS += $(patsubst %, libraries/%, $(PACKAGES_STAGE2))
BUILD_DIRS
+=
$(
patsubst
%, libraries/%,
$(PACKAGES_STAGE1)
)
BUILD_DIRS
+=
$(
patsubst
%, libraries/%,
$(
filter-out
$(PACKAGES_STAGE1)
,
$(PACKAGES_STAGE0)
))
ifeq
"$(BUILD_DPH)" "YES"
# Note: `$(eval $(call foreachLibrary,addExtraPackage))` above adds the
# packages listed in `libraries/dph/ghc-packages` (e.g. dph-base) to
# PACKAGES_STAGE2. But not 'libraries/dph' itself (it doesn't have a cabal
# file). Since it does have a ghc.mk file, we add it to BUILD_DIRS here.
BUILD_DIRS
+=
$(
wildcard
libraries/dph
)
endif
endif
...
...
@@ -1350,6 +1360,7 @@ maintainer-clean : distclean
.PHONY
:
all_libraries
.PHONY
:
bootstrapping-files
# See https://ghc.haskell.org/trac/ghc/wiki/Building/Porting
bootstrapping-files
:
$(includes_H_CONFIG)
bootstrapping-files
:
$(includes_DERIVEDCONSTANTS)
bootstrapping-files
:
$(includes_GHCCONSTANTS)
...
...
rules/build-package-data.mk
View file @
2e52057a
...
...
@@ -139,8 +139,8 @@ ifneq "$$($1_$2_REGISTER_PACKAGE)" "NO"
$$(call
cmd,$1_$2_GHC_PKG)
update
--force
$$($1_$2_GHC_PKG_OPTS)
$1/$2/inplace-pkg-config
endif
endif
endif
endif
endif
# NO_GENERATED_MAKEFILE_RULES
endif
# BINDIST
PACKAGE_DATA_MKS
+=
$1
/
$2
/package-data.mk
...
...
rules/haddock.mk
View file @
2e52057a
...
...
@@ -75,7 +75,7 @@ endif
$$($$($1_PACKAGE)-$$($1_$2_VERSION)_HADDOCK_FILE)
:
$$($1_$2_$$(HADDOCK_WAY)_LIB)
endif
endif
endif
# $1_$2_DO_HADDOCK
$(call
profEnd,
haddock($1,$2))
endef
...
...
Write
Preview
Markdown
is supported
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