diff options
author | Daniel Stenberg <daniel@haxx.se> | 2003-08-12 09:08:05 +0000 |
---|---|---|
committer | Daniel Stenberg <daniel@haxx.se> | 2003-08-12 09:08:05 +0000 |
commit | c46da652632a4c0719e4343d7d7030266c92588d (patch) | |
tree | b18b0cdacc111402278a0d11b9ff2ee23ef370c1 /docs/libcurl/Makefile.am | |
parent | b46745759b75cc86a55f19c4f91f18ad37a920b6 (diff) |
nicer make target for the pdf conversion
Diffstat (limited to 'docs/libcurl/Makefile.am')
-rw-r--r-- | docs/libcurl/Makefile.am | 18 |
1 files changed, 8 insertions, 10 deletions
diff --git a/docs/libcurl/Makefile.am b/docs/libcurl/Makefile.am index ccc98ac24..c90a99003 100644 --- a/docs/libcurl/Makefile.am +++ b/docs/libcurl/Makefile.am @@ -124,20 +124,18 @@ EXTRA_DIST = $(man_MANS) $(HTMLPAGES) index.html $(PDFPAGES) MAN2HTML= gnroff -man $< | man2html >$@ -SUFFIXES = .1 .3 .html +SUFFIXES = .3 .html html: $(HTMLPAGES) .3.html: $(MAN2HTML) -.1.html: - $(MAN2HTML) +pdf: $(PDFPAGES) -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; \ - rm $$foo.ps; \ - done +.3.pdf: + @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \ + groff -Tps -man $< >$$foo.ps; \ + ps2pdf $$foo.ps $@; \ + rm $$foo.ps; \ + echo "converted $< to $@") |