Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Terraform modules
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Alex McKenna
GHC
Commits
f6e429f8
Commit
f6e429f8
authored
17 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
default to installing runhaskell and hsc2hs again, but provide knobs to turn them off
parent
7895455f
Loading
Loading
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
ghc.spec.in
+6
-0
6 additions, 0 deletions
ghc.spec.in
mk/config.mk.in
+13
-0
13 additions, 0 deletions
mk/config.mk.in
utils/hsc2hs/Makefile
+6
-1
6 additions, 1 deletion
utils/hsc2hs/Makefile
utils/runghc/Makefile
+14
-1
14 additions, 1 deletion
utils/runghc/Makefile
with
39 additions
and
2 deletions
ghc.spec.in
+
6
−
0
View file @
f6e429f8
...
...
@@ -84,6 +84,12 @@ needed.
%build
test -f configure || sh boot
./configure --prefix=%{_prefix} --mandir=%{_mandir}
# Don't install these tools, we'll use update-alternatives below.
touch mk/build.mk
echo "NO_INSTALL_RUNHASKELL=YES" >>mk/build.mk
echo "NO_INSTALL_HSC2HS=YES" >>mk/build.mk
make %{?jobs:-j%jobs}
make html
# Alas, we don't pass make options/arguments down to "libraries", so let's redo make here...
...
...
This diff is collapsed.
Click to expand it.
mk/config.mk.in
+
13
−
0
View file @
f6e429f8
...
...
@@ -641,6 +641,19 @@ INSTALL_HEADER = $(INSTALL) -m 644
INSTALL_MAN
=
$(
INSTALL
)
-m
644
INSTALL_DIR
=
$(
MKDIRHIER
)
#
# runhaskell and hsc2hs are special, in that other compilers besides
# GHC might provide them. Systems with a package manager often come
# with tools to manage this kind of clash, e.g. RPM's
# update-alternatives. When building a distribution for such a system,
# we recommend setting both of the following to 'YES'.
#
# NO_INSTALL_RUNHASKELL = YES
# NO_INSTALL_HSC2HS = YES
#
# NB. we use negative tests here because for binary-distributions we cannot
# test build-time variables at install-time, so they must default to on.
# -----------------------------------------------------------------------------
# Utilities programs: flags
...
...
This diff is collapsed.
Click to expand it.
utils/hsc2hs/Makefile
+
6
−
1
View file @
f6e429f8
...
...
@@ -54,7 +54,7 @@ ifeq "$(HOSTPLATFORM)" "i386-unknown-mingw32"
INSTALL_PROGS
+=
$(
HS_PROG
)
else
INSTALL_LIBEXECS
+=
$(
HS_PROG
)
LINK
=
hsc2hs
LINK
=
hsc2hs
-ghc
LINK_TARGET
=
$(
LINK
)
-
$(
ProjectVersion
)
INSTALLED_SCRIPT
=
$(
DESTDIR
)$(
bindir
)
/
$(
LINK_TARGET
)
install
::
...
...
@@ -66,6 +66,11 @@ install::
echo
"HSC2HS_EXTRA="
>>
$(
INSTALLED_SCRIPT
)
cat
hsc2hs.sh
>>
$(
INSTALLED_SCRIPT
)
$(
EXECUTABLE_FILE
)
$(
INSTALLED_SCRIPT
)
ifneq
"$(NO_INSTALL_HSC2HS)" "YES"
install
::
$(
CP
)
$(
INSTALLED_SCRIPT
)
$(
DESTDIR
)
/
$(
bindir
)
/hsc2hs
endif
endif
# -----------------------------------------------------------------------------
...
...
This diff is collapsed.
Click to expand it.
utils/runghc/Makefile
+
14
−
1
View file @
f6e429f8
...
...
@@ -16,9 +16,22 @@ include $(GHC_COMPAT_DIR)/compat.mk
SRC_HC_OPTS
+=
$(
GhcHcOpts
)
$(
GhcStage1HcOpts
)
SRC_HC_OPTS
+=
-Wall
binary-dist
:
RUNHASKELL_PROG
=
runhaskell
$(
exeext
)
all
::
$(RUNHASKELL_PROG)
$(RUNHASKELL_PROG)
:
$(HS_PROG)
$(
CP
)
$<
$(
RUNHASKELL_PROG
)
CLEAN_FILES
+=
$(
RUNHASKELL_PROG
)
ifneq
"$(NO_INSTALL_RUNHASKELL)" "YES"
INSTALL_PROGS
+=
$(
RUNHASKELL_PROG
)
endif
binary-dist
::
$(
INSTALL_DIR
)
$(
BIN_DIST_DIR
)
/utils/runghc
$(
INSTALL_DATA
)
Makefile
$(
BIN_DIST_DIR
)
/utils/runghc/
$(
INSTALL_PROGRAM
)
$(
HS_PROG
)
$(
BIN_DIST_DIR
)
/utils/runghc/
$(
INSTALL_PROGRAM
)
$(
RUNHASKELL_PROG
)
$(
BIN_DIST_DIR
)
/utils/runghc/
include
$(TOP)/mk/target.mk
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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!
Save comment
Cancel
Please
register
or
sign in
to comment