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
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Iterations
Merge Requests
0
Merge Requests
0
Requirements
Requirements
List
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Package Registry
Container Registry
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
jberryman
GHC
Commits
6d0dd9aa
Commit
6d0dd9aa
authored
Aug 10, 2008
by
Ian Lynagh
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bindist fixes
parent
2de31b61
Changes
12
Hide whitespace changes
Inline
Side-by-side
Showing
12 changed files
with
39 additions
and
50 deletions
+39
-50
Makefile
Makefile
+11
-2
compiler/Makefile
compiler/Makefile
+2
-21
distrib/Makefile
distrib/Makefile
+1
-0
docs/docbook-cheat-sheet/Makefile
docs/docbook-cheat-sheet/Makefile
+1
-2
docs/ext-core/Makefile
docs/ext-core/Makefile
+3
-2
docs/storage-mgt/Makefile
docs/storage-mgt/Makefile
+3
-2
docs/users_guide/Makefile
docs/users_guide/Makefile
+1
-2
driver/Makefile
driver/Makefile
+1
-1
ghc/Makefile
ghc/Makefile
+3
-8
libraries/Makefile
libraries/Makefile
+11
-9
mk/package.mk
mk/package.mk
+1
-1
utils/ghc-pkg/Makefile
utils/ghc-pkg/Makefile
+1
-0
No files found.
Makefile
View file @
6d0dd9aa
...
...
@@ -337,6 +337,7 @@ binary-dist::
$(MAKE)
-C
gmp
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/gmp
$(MAKE)
-C
includes
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/includes
$(MAKE)
-C
compiler
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/compiler
$(INSTALL_STAGE)
$(MAKE)
-C
ghc
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/ghc
$(INSTALL_STAGE)
$(MAKE)
-C
rts
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/rts
$(MAKE)
-C
driver
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/driver
$(MAKE)
-C
utils
binary-dist
WHERE_AM_I
=
$(WHERE_AM_I)
/utils
...
...
@@ -346,8 +347,6 @@ binary-dist::
# Now thinks get messier. Some files we need to move around, rename or
# generate. We do this under $(BIN_DIST_PREP).
$(RM)
-rf
$(BIN_DIST_PREP_DIR)
$(MKDIRHIER)
$(BIN_DIST_PREP)/utils/pwd
cp
utils/pwd/dist-install/build/pwd/pwd
$(BIN_DIST_PREP)/utils/pwd
$(MKDIRHIER)
$(BIN_DIST_PREP)/mk
echo
'include $$(TOP)/Makefile-vars'
>
$(BIN_DIST_PREP)/mk/boilerplate.mk
echo
'include $$(TOP)/mk/package.mk'
>
$(BIN_DIST_PREP)/mk/target.mk
...
...
@@ -366,6 +365,15 @@ endif
# next to configure.ac when we run autoreconf
cp
aclocal.m4
$(BIN_DIST_PREP)
cd
$(BIN_DIST_PREP)
&&
autoreconf
# We need to copy the pwd program that was built with stage1 to where
# the build system expects to find it, i.e. the location the pwd built
# with the bootstrapping compiler normally occupies
$(MKDIRHIER)
$(BIN_DIST_PREP)/utils/pwd
cp
utils/pwd/dist-install/build/pwd/pwd
$(BIN_DIST_PREP)/utils/pwd
# And likewise the installPackage program
$(MKDIRHIER)
$(BIN_DIST_PREP)/utils/installPackage/install-inplace/bin
cp
utils/installPackage/dist-install/build/installPackage/installPackage
\
$(BIN_DIST_PREP)/utils/installPackage/install-inplace/bin
echo
"package = ghc"
>>
$(BIN_DIST_VARFILE)
echo
"version = $(ProjectVersion)"
>>
$(BIN_DIST_VARFILE)
...
...
@@ -380,6 +388,7 @@ endif
echo
"XSLTPROC = $(XSLTPROC)"
>>
$(BIN_DIST_VARFILE)
echo
"TARGETPLATFORM = $(TARGETPLATFORM)"
>>
$(BIN_DIST_VARFILE)
echo
"HADDOCK_DOCS = $(HADDOCK_DOCS)"
>>
$(BIN_DIST_VARFILE)
echo
"INTEGER_LIBRARY = $(INTEGER_LIBRARY)"
>>
$(BIN_DIST_VARFILE)
cat
distrib/Makefile-bin-vars.in
>>
$(BIN_DIST_VARFILE)
# With that done, we can now build the actual tarball
...
...
compiler/Makefile
View file @
6d0dd9aa
...
...
@@ -439,25 +439,6 @@ primop-usage.hs-incl: prelude/primops.txt
# binary-dist
#
# XXX This is just broken, currently
binary-dist
:
@
:
#binary-dist:
# $(INSTALL_DIR) $(BIN_DIST_DIR)/compiler
# $(INSTALL_DIR) $(BIN_DIST_DIR)/compiler/stage$(stage)
# echo "stage=$(stage)" > $(BIN_DIST_DIR)/compiler/Makefile
# cat Makefile >> $(BIN_DIST_DIR)/compiler/Makefile
# $(INSTALL_DATA) package.conf.in $(BIN_DIST_DIR)/compiler/
# set -e; for d in stage$(stage)/*/; do $(INSTALL_DIR) $(BIN_DIST_DIR)/compiler/$$d; done
# set -e; for f in $(HS_IFACES); do $(INSTALL_DATA) $$f $(BIN_DIST_DIR)/compiler/$$f; done
#ifneq "$(INSTALL_LIBS)" ""
# set -e; for f in $(INSTALL_LIBS); do $(INSTALL_DATA) $$f $(BIN_DIST_DIR)/compiler/$$f; done
#endif
#ifneq "$(INSTALL_PROGS)" ""
# set -e; for f in $(INSTALL_PROGS); do $(INSTALL_PROGRAM) $$f $(BIN_DIST_DIR)/compiler/$$f; done
#endif
#ifneq "$(INSTALL_LIBEXECS)" ""
# set -e; for f in $(INSTALL_LIBEXECS); do $(INSTALL_PROGRAM) $$f $(BIN_DIST_DIR)/compiler/$$f; done
#endif
include
$(TOP)/mk/bindist.mk
LIB_DIST_DIR
=
dist-stage
$(stage)
distrib/Makefile
View file @
6d0dd9aa
...
...
@@ -27,6 +27,7 @@ install::
$(MAKE)
-C
rts
install
DOING_BIN_DIST
=
YES
$(MAKE)
-C
libraries
install
DOING_BIN_DIST
=
YES
$(MAKE)
-C
compiler
install
DOING_BIN_DIST
=
YES
$(MAKE)
-C
ghc
install
DOING_BIN_DIST
=
YES
$(MAKE)
-C
gmp
install
DOING_BIN_DIST
=
YES
$(MAKE)
-C
docs install-docs
DOING_BIN_DIST
=
YES
$(MAKE)
-C
libraries/Cabal/doc install-docs
DOING_BIN_DIST
=
YES
...
...
docs/docbook-cheat-sheet/Makefile
View file @
6d0dd9aa
...
...
@@ -4,7 +4,6 @@ include $(TOP)/mk/boilerplate.mk
XML_DOC
=
docbook-cheat-sheet
INSTALL_XML_DOC
=
docbook-cheat-sheet
binary-dist
:
@
:
include
$(TOP)/mk/bindist.mk
include
$(TOP)/mk/target.mk
docs/ext-core/Makefile
View file @
6d0dd9aa
TOP
=
../..
# General makefile for Latex stuff
LATEX
=
latex
\\
nonstopmode
\\
input
...
...
@@ -28,8 +30,7 @@ distclean: clean
maintainer-clean
:
distclean
binary-dist
:
@
:
include
$(TOP)/mk/bindist.mk
# dummy targets
all
:
...
...
docs/storage-mgt/Makefile
View file @
6d0dd9aa
TOP
=
../..
# General makefile for Latex stuff
dvi
:
sm.dvi rp.dvi ldv.dvi
...
...
@@ -25,8 +27,7 @@ distclean: clean
maintainer-clean
:
distclean
binary-dist
:
@
:
include
$(TOP)/mk/bindist.mk
# dummy targets
all
:
...
...
docs/users_guide/Makefile
View file @
6d0dd9aa
...
...
@@ -4,7 +4,6 @@ include $(TOP)/mk/boilerplate.mk
XML_DOC
=
users_guide
INSTALL_XML_DOC
=
users_guide
binary-dist
:
@
:
include
$(TOP)/mk/bindist.mk
include
$(TOP)/mk/target.mk
driver/Makefile
View file @
6d0dd9aa
...
...
@@ -7,7 +7,7 @@
TOP
=
..
include
$(TOP)/mk/boilerplate.mk
SUBDIRS
=
mangler
split
ghc
ghc
i
SUBDIRS
=
mangler
split
ghci
INPLACE_DATA_DIR
=
$(FPTOOLS_TOP_ABS)
/inplace-datadir
INPLACE_PKG_CONF
=
$(INPLACE_DATA_DIR)
/package.conf
...
...
ghc/Makefile
View file @
6d0dd9aa
...
...
@@ -119,16 +119,11 @@ build.stage.%:
install
:
$(INSTALL_PACKAGE)
install
UNUSED UNUSED
'
$(DESTDIR)
'
'
$(prefix)
'
\
'
$(prefix)
'
'
$(bindir)
'
'
$(libdir)
'
\
'
$(libexecdir)
'
'
$(dynlibdir)
'
'
$(
libdir)
'
\
'
$(libexecdir)
'
'
$(dynlibdir)
'
'
$(
datadir)
'
\
'
$(docdir)
'
'
$(htmldir)
'
'
$(haddockdir)
'
\
--distpref
dist-stage2
\
$(INSTALL_FLAGS)
# XXX fix:
#binary-dist:
# $(INSTALL_DIR) $(BIN_DIST_DIR)/utils/hsc2hs
# $(INSTALL_DATA) Makefile $(BIN_DIST_DIR)/utils/hsc2hs/
# $(INSTALL_DATA) hsc2hs.sh $(BIN_DIST_DIR)/utils/hsc2hs/
# $(INSTALL_DATA) $(INSTALL_DATAS) $(BIN_DIST_DIR)/utils/hsc2hs/
# $(INSTALL_PROGRAM) $(HS_PROG) $(BIN_DIST_DIR)/utils/hsc2hs/
include
$(TOP)/mk/bindist.mk
EXE_DIST_DIR
=
dist-stage
$(stage)
libraries/Makefile
View file @
6d0dd9aa
...
...
@@ -119,6 +119,8 @@ ihtmldir = $(htmldir)/libraries/$$pkg
html_installed_root
=
$(htmldir)
/libraries
endif
IFBUILDABLE
=
ifBuildable/ifBuildable
$(FPTOOLS_TOP_ABS)
/packages
ifneq
"$(DOING_BIN_DIST)" "YES"
CONFIGURE_OPTS
=
...
...
@@ -146,8 +148,6 @@ subdirs:
HERE_ABS
=
$(FPTOOLS_TOP_ABS)
/libraries
IFBUILDABLE
=
ifBuildable/ifBuildable
$(FPTOOLS_TOP_ABS)
/packages
CABAL_GHC_FLAGS
=
-Wall
ifeq
"$(ghc_ge_605)" "NO"
CABAL_GHC_FLAGS
+=
-cpp
...
...
@@ -364,7 +364,7 @@ $(foreach SUBDIR,$(SUBDIRS),install.library.$(SUBDIR)): \
install.library.%: ifBuildable/ifBuildable
if
$(IFBUILDABLE)
$*
;
then
\
cd
$*
&&
\
$(INSTALL_PACKAGE)
install
'
$(
GHC_PKG_PROG)
'
'
$(DESTDIR)$(lib
dir)
/package.conf'
'
$(DESTDIR)
'
'
$(prefix)
'
'
$(iprefix)
'
'
$(ibindir)
'
'
$(ilibdir)
'
'
$(ilibexecdir)
'
'
$(idynlibdir)
'
'
$(idatadir)
'
'
$(idocdir)
'
'
$(ihtmldir)
'
'
$(ihaddockdir)
'
;
\
$(INSTALL_PACKAGE)
install
'
$(
DESTDIR)$(bindir)
/ghc-pkg'
'
$(DESTDIR)$(data
dir)
/package.conf'
'
$(DESTDIR)
'
'
$(prefix)
'
'
$(iprefix)
'
'
$(ibindir)
'
'
$(ilibdir)
'
'
$(ilibexecdir)
'
'
$(idynlibdir)
'
'
$(idatadir)
'
'
$(idocdir)
'
'
$(ihtmldir)
'
'
$(ihaddockdir)
'
;
\
fi
.PHONY
:
binary-dist binary-dist.library.%
...
...
@@ -372,14 +372,16 @@ install.library.%: ifBuildable/ifBuildable
BIN_DIST_LIBDIR
=
$(BIN_DIST_DIR)
/libraries
BINDIST_EXTRAS
+=
ifBuildable/ifBuildable
ifeq
"$(HADDOCK_DOCS)" "YES"
BINDIST_EXTRAS
+=
gen_contents_index
BINDIST_EXTRAS
+=
index.html
BINDIST_EXTRAS
+=
doc-index
*
.html
endif
binary-dist
:
$(foreach SUBDIR
,
$(SUBDIRS)
,
binary-dist.library.$(SUBDIR))
# This is a bit of a hack, but it works...
echo
$(WHERE_AM_I)
/Makefile
>>
$(BIN_DIST_LIST)
# XXX This needs to be changed: This ifBuildable is built with the
# bootstrapping compiler, so isn't OS X friendly. It should be made into
# a Cabal package if we keep it. However, once we drop extralibs we can
# probably remove it anyway.
echo
$(WHERE_AM_I)/ifBuildable/ifBuildable
>>
$(BIN_DIST_LIST)
ifeq
"$(HADDOCK_DOCS)" "YES"
for
FILE
in
gen_contents_index
index.html
doc-index*.html;
do
echo
$(WHERE_AM_I)/$$FILE
>>
$(BIN_DIST_LIST);
done
endif
$(foreach SUBDIR,$(SUBDIRS),binary-dist.library.$(SUBDIR))
:
\
binary-dist.library.%:
...
...
mk/package.mk
View file @
6d0dd9aa
...
...
@@ -84,7 +84,7 @@ install::
-x
c
$(PACKAGE_CPP_OPTS)
package.conf.in
\
|
grep
-v
'^#pragma GCC'
\
|
sed
-e
's/""//g'
-e
's/:[ ]*,/: /g'
\
|
$(
GHC_PKG_PROG)
--global-conf
$(DESTDIR)$(lib
dir)
/package.conf update -
--force
|
$(
DESTDIR)$(bindir)
/ghc-pkg
--global-conf
$(DESTDIR)$(data
dir)
/package.conf update -
--force
# we could be more accurate here and add a dependency on
# driver/package.conf, but that doesn't work too well because of
...
...
utils/ghc-pkg/Makefile
View file @
6d0dd9aa
...
...
@@ -3,6 +3,7 @@ TOP=../..
ENABLE_SHELL_WRAPPERS
=
YES
EXTRA_CLEAN
=
Version.hs
EXTRA_INPLACE_CONFIGURE_FLAGS
=
$(INPLACE_GHC_DATADIR_CONFIGURE_FLAGS)
EXTRA_STAGE1_CONFIGURE_FLAGS
=
--datasubdir
=
.
include
$(TOP)/mk/boilerplate.mk
include
$(TOP)/mk/cabal.mk
...
...
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