Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
jberryman
GHC
Commits
e95140a5
Commit
e95140a5
authored
Mar 21, 2010
by
Ian Lynagh
Browse files
Add the external core PDF to the new build system
parent
15f7bc38
Changes
5
Hide whitespace changes
Inline
Side-by-side
docs/ext-core/Makefile
View file @
e95140a5
dir
=
docs/users_guide
TOP
=
../..
include
$(TOP)/mk/boilerplate.mk
ifeq
"$(LATEX_DOCS)" "YES"
all
:
pdf
install-docs
:
-
mkdir
$(docdir)
/ext-core
cp
core.pdf
$(docdir)
/ext-core/
else
all
:
install-docs
:
endif
# General makefile for Latex stuff
LATEX
=
latex
\\
nonstopmode
\\
input
PDFLATEX
=
pdflatex
BIBTEX
=
bibtex
dvi
:
core.dvi
ps
:
core.ps core.ps.gz
pdf
:
core.pdf
core.pdf
:
core.tex
$(PDFLATEX)
core.tex
$(BIBTEX)
core
$(PDFLATEX)
core.tex
$(PDFLATEX)
core.tex
######## General rules
.SUFFIXES
:
.PRECIOUS
:
%.tex %.ps %.ps.gz %.pdf %.bbl
%.gz
:
%
gzip
<
$<
>
$@
%.ps
:
%.dvi
dvips
-f
<
$<
>
$@
%.pdf
:
%.ps
ps2pdf
$<
$@
clean
:
$(RM)
*
.aux
*
.log
distclean
:
clean
$(RM)
prims.tex
*
.dvi
*
.ps
*
.pdf
*
.bbl
*
.blg
*
.gz
maintainer-clean
:
distclean
include
$(TOP)/mk/bindist.mk
# dummy targets
boot
:
install
:
html
:
chm
:
HxS
:
# End of file
include
$(TOP)/mk/sub-makefile.mk
docs/ext-core/ghc.mk
0 → 100644
View file @
e95140a5
ifeq
"$(LATEX_DOCS)" "YES"
$(eval
$(call
all-target,docs/ext-core,docs/ext-core/core.pdf))
INSTALL_DOCS
+=
docs/ext-core/core.pdf
endif
ifneq
"$(BINDIST)" "YES"
docs/ext-core/core.pdf
:
docs/ext-core/core.tex
cd
docs/ext-core
&&
$(PDFLATEX)
core.tex
cd
docs/ext-core
&&
$(BIBTEX)
core
cd
docs/ext-core
&&
$(PDFLATEX)
core.tex
cd
docs/ext-core
&&
$(PDFLATEX)
core.tex
endif
docs/users_guide/using.xml
View file @
e95140a5
...
...
@@ -2125,7 +2125,7 @@ statements or clauses.
<para>
GHC can dump its optimized intermediate code (said to be in
“
Core
”
format)
to a file as a side-effect of compilation. Non-GHC back-end tools can read and process Core files; these files have the suffix
<filename>
.hcr
</filename>
. The Core format is described in
<ulink
url=
"../
ext-core
/core.pdf"
>
<filename>
.hcr
</filename>
. The Core format is described in
<ulink
url=
"../
..
/core.pdf"
>
<citetitle>
An External Representation for the GHC Core Language
</citetitle></ulink>
,
and sample tools
for manipulating Core files (in Haskell) are in the GHC source distribution
...
...
ghc.mk
View file @
e95140a5
...
...
@@ -494,6 +494,7 @@ endif
BUILD_DIRS
+=
\
docs/users_guide
\
docs/ext-core
\
docs/man
\
libraries/Cabal/doc
\
$(GHC_UNLIT_DIR)
\
...
...
mk/config.mk.in
View file @
e95140a5
...
...
@@ -587,6 +587,8 @@ INSTALL = @INSTALL@
#
INSTALL
:=
$(
subst
.././install-sh,
$(TOP)
/install-sh,
$(INSTALL)
)
LATEX
=
latex
PDFLATEX
=
pdflatex
BIBTEX
=
bibtex
HEVEA
=
hevea
HACHA
=
hacha
LN_S
=
@LN_S@
...
...
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