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
psilospore - Syed Jafri
GHC
Commits
a2dd573d
Commit
a2dd573d
authored
17 years ago
by
Simon Marlow
Browse files
Options
Downloads
Patches
Plain Diff
build ghctags-inplace
parent
07570cc9
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
mk/config.mk.in
+2
-2
2 additions, 2 deletions
mk/config.mk.in
utils/ghctags/Makefile
+50
-3
50 additions, 3 deletions
utils/ghctags/Makefile
with
52 additions
and
5 deletions
mk/config.mk.in
+
2
−
2
View file @
a2dd573d
...
...
@@ -785,7 +785,7 @@ GHC_SPLIT_DIR_ABS = $(FPTOOLS_TOP_ABS)/$(GHC_SPLIT_DIR_REL)
GHC_UNLIT_PGM
=
unlit
$(
exeext
)
GHC_HP2PS_PGM
=
hp2ps
GHC_HSTAGS_PGM
=
hasktags
GHC_GHCTAGS_PGM
=
ghctags
GHC_GHCTAGS_
INPLACE_
PGM
=
ghctags
-inplace
GHC_HSC2HS_INPLACE_PGM
=
hsc2hs-inplace
GHC_TOUCHY_PGM
=
touchy
$(
exeext
)
GHC_MANGLER_PGM
=
ghc-asm
...
...
@@ -811,7 +811,7 @@ endif
UNLIT
=
$(
GHC_UNLIT_DIR
)
/
$(
GHC_UNLIT_PGM
)
HP2PS
=
$(
GHC_HP2PS_DIR
)
/
$(
GHC_HP2PS_PGM
)
HSTAGS
=
$(
GHC_HSTAGS_DIR
)
/
$(
GHC_HSTAGS_PGM
)
GHCTAGS
=
$(
GHC_GHCTAGS_DIR
)
/
$(
GHC_GHCTAGS_PGM
)
GHCTAGS
_INPLACE
=
$(
GHC_GHCTAGS_DIR
)
/
$(
GHC_GHCTAGS_
INPLACE_
PGM
)
HSC2HS_INPLACE
=
$(
GHC_HSC2HS_DIR
)
/
$(
GHC_HSC2HS_INPLACE_PGM
)
MANGLER
=
$(
GHC_MANGLER_DIR
)
/
$(
GHC_MANGLER_PGM
)
SPLIT
=
$(
GHC_SPLIT_DIR
)
/
$(
GHC_SPLIT_PGM
)
...
...
This diff is collapsed.
Click to expand it.
utils/ghctags/Makefile
+
50
−
3
View file @
a2dd573d
TOP
=
../..
include
$(TOP)/mk/boilerplate.mk
HS_PROG
=
ghctags
SRC_HC_OPTS
+=
-package
ghc
HC
=
$(
GHC_STAGE1
)
CLEAN_FILES
+=
Main.hi
# On Windows, ghc-pkg is a standalone program
# ($bindir/ghc-pkg.exe), whereas on Unix it needs a wrapper script
# to pass the appropriate flag to the real binary
# ($libexecdir/ghc-pkg.bin) so that it can find package.conf.
ifeq
"$(HOSTPLATFORM)" "i386-unknown-mingw32"
HS_PROG
=
ghctags.exe
INSTALL_PROGS
+=
$(
HS_PROG
)
else
HS_PROG
=
ghctags.bin
INSTALL_LIBEXECS
+=
$(
HS_PROG
)
endif
# -----------------------------------------------------------------------------
# ghctags and ghctags-inplace scripts
# See commentary in ../ghc-pkg/Makefile
INPLACE_HS
=
ghctags-inplace.hs
INPLACE_PROG
=
ghctags-inplace
EXCLUDED_SRCS
+=
$(
INPLACE_HS
)
$(INPLACE_HS)
:
Makefile $(FPTOOLS_TOP)/mk/config.mk
echo
"import System.Cmd; import System.Environment; import System.Exit"
>
$@
echo
"main = do args <- getArgs; rawSystem
\"
$(
FPTOOLS_TOP_ABS
)
/
$(
GHC_GHCTAGS_DIR_REL
)
/
$(
HS_PROG
)
\"
(
\"
--topdir
\"
:
\"
$(
FPTOOLS_TOP_ABS
)
\"
:args) >>= exitWith"
>>
$@
$(INPLACE_PROG)
:
$(INPLACE_HS)
$(
HC
)
--make
$<
-o
$@
all
::
$(INPLACE_PROG)
CLEAN_FILES
+=
$(
INPLACE_HS
)
$(
INPLACE_PROG
)
ifneq
"$(HOSTPLATFORM)" "i386-unknown-mingw32"
LINK
=
ghctags
LINK_TARGET
=
$(
LINK
)
-
$(
ProjectVersion
)
INSTALLED_SCRIPT
=
$(
DESTDIR
)$(
bindir
)
/
$(
LINK_TARGET
)
install
::
$(
INSTALL_DIR
)
$(
DESTDIR
)$(
bindir
)
$(
RM
)
-f
$(
INSTALLED_SCRIPT
)
echo
"#!
$(
SHELL
)
"
>>
$(
INSTALLED_SCRIPT
)
echo
"GHCTAGSBIN=
$(
libexecdir
)
/
$(
HS_PROG
)
"
>>
$(
INSTALLED_SCRIPT
)
echo
"TOPDIR=
$(
libdir
)
"
>>
$(
INSTALLED_SCRIPT
)
echo
'exec $$GHCTAGSBIN --topdir $$TOPDIR
$${
1+"$$@"
}
'
>>
$(
INSTALLED_SCRIPT
)
$(
EXECUTABLE_FILE
)
$(
INSTALLED_SCRIPT
)
endif
INSTALL_PROGS
+=
$(
HS_PROG
)
binary-dist
:
$(
INSTALL_DIR
)
$(
BIN_DIST_DIR
)
/utils/ghctags
$(
INSTALL_DATA
)
Makefile
$(
BIN_DIST_DIR
)
/utils/ghctags/
$(
INSTALL_PROGRAM
)
$(
HS_PROG
)
$(
BIN_DIST_DIR
)
/utils/ghctags/
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