Fix the ext-core doc in bindists
[ghc-hetmet.git] / docs / ext-core / Makefile
index 10f3183..aae6c48 100644 (file)
@@ -1,10 +1,23 @@
+TOP = ../..
+include $(TOP)/mk/boilerplate.mk
+
+ifeq "$(LATEX_DOCS)" "YES"
+all: ps
+
+install-docs:
+       -mkdir        $(docdir)/ext-core
+       cp core.ps.gz $(docdir)/ext-core/
+else
+all:
+endif
+
 #      General makefile for Latex stuff
 
 LATEX=latex \\nonstopmode \\input
 BIBTEX=bibtex
 
 dvi: core.dvi
-ps: core.ps
+ps: core.ps core.ps.gz
 
 core.dvi:      core.tex
                -$(LATEX) core.tex
@@ -14,8 +27,11 @@ core.dvi:    core.tex
 
 ######## General rules
 .SUFFIXES:
-.PRECIOUS: %.tex %.ps %.bbl
+.PRECIOUS: %.tex %.ps %.ps.gz %.bbl
+
 
+%.gz: %
+       gzip < $< > $@
 
 %.ps: %.dvi
        dvips -f < $< > $@
@@ -28,14 +44,12 @@ distclean: clean
 
 maintainer-clean: distclean
 
-binary-dist:
-       @:
+BINDIST_EXTRAS += core.ps.gz
+include $(TOP)/mk/bindist.mk
 
 # dummy targets
-all:
 boot:
 install:
-install-docs:
 html:
 chm:
 HxS: