aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Stenberg <daniel@haxx.se>2003-10-17 13:31:39 +0000
committerDaniel Stenberg <daniel@haxx.se>2003-10-17 13:31:39 +0000
commitb1952e773a6a3a2c6a598e5b0cd13d9463d8e4ec (patch)
tree84a13dfa0141c9eac2bd8c7647587a5da28b5637
parentce5db9a86ea1508b0caaeec38adc5397e390dc3e (diff)
nicer pdf generation
-rw-r--r--docs/Makefile.am20
1 files changed, 9 insertions, 11 deletions
diff --git a/docs/Makefile.am b/docs/Makefile.am
index a3f9ec44f..d23a39558 100644
--- a/docs/Makefile.am
+++ b/docs/Makefile.am
@@ -26,23 +26,21 @@ EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \
MAN2HTML= $(NROFF) -man $< | man2html >$@
-SUFFIXES = .1 .3 .html .pdf
+SUFFIXES = .1 .html .pdf
html: $(HTMLPAGES)
cd libcurl; make html
-.3.html:
- $(MAN2HTML)
+pdf: $(PDFPAGES)
+ cd libcurl; make pdf
.1.html:
$(MAN2HTML)
-MAN2PDF = groff -Tps -man curl.1 $< >$@
+.1.pdf:
+ @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
+ groff -Tps -man $< >$$foo.ps; \
+ ps2pdf $$foo.ps $@; \
+ rm $$foo.ps; \
+ echo "converted $< to $@")
-pdf:
- for file in $(man_MANS); do \
- foo=`echo $$file | sed -e 's/\.[0-9]$$//g'`; \
- groff -Tps -man $$file >$$foo.ps; \
- ps2pdf $$foo.ps $$foo.pdf; \
- done
- cd libcurl; make pdf