Add the external core PDF to the new build system
[ghc-hetmet.git] / docs / ext-core / ghc.mk
diff --git a/docs/ext-core/ghc.mk b/docs/ext-core/ghc.mk
new file mode 100644 (file)
index 0000000..47e56c0
--- /dev/null
@@ -0,0 +1,15 @@
+
+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
+