diff options
| author | Daniel Stenberg <daniel@haxx.se> | 2005-03-22 19:46:49 +0000 | 
|---|---|---|
| committer | Daniel Stenberg <daniel@haxx.se> | 2005-03-22 19:46:49 +0000 | 
| commit | 2bf72937d228c9fe5b07e3ce4c7529968041d888 (patch) | |
| tree | ee53db91c81615b2b62511675c39141d9c589aaf | |
| parent | 4e555c7b3238ebe48d7fcee304eab977f48679d4 (diff) | |
provide HTML and PDF versions of the man pages in the dist archive
| -rw-r--r-- | tests/Makefile.am | 18 | 
1 files changed, 17 insertions, 1 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 2cfc4d876..875af4d78 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -20,9 +20,13 @@  #  # $Id$  ########################################################################### + +HTMLPAGES = curl.html curl-config.html +PDFPAGES = curl.pdf curl-config.pdf +  EXTRA_DIST = ftpserver.pl httpserver.pl httpsserver.pl runtests.pl	\   ftpsserver.pl getpart.pm FILEFORMAT README stunnel.pem memanalyze.pl	\ - testcurl.pl valgrind.pm testcurl.1 runtests.1 + testcurl.pl valgrind.pm testcurl.1 runtests.1 $(HTMLPAGES) $(PDFPAGES)  SUBDIRS = data server libtest @@ -30,6 +34,8 @@ PERLFLAGS = -I$(srcdir)  CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid +MAN2HTML= roffit < $< >$@ +  curl:  	@cd $(top_builddir) && $(MAKE) @@ -56,3 +62,13 @@ full-test: all  torture-test: all  	$(TEST) $(TEST_T) + +.1.html: +	$(MAN2HTML) + +.1.pdf: +	@(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \ +	groff -Tps -man $< >$$foo.ps; \ +	ps2pdf $$foo.ps $@; \ +	rm $$foo.ps; \ +	echo "converted $< to $@")  | 
