Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 1 | #*************************************************************************** |
| 2 | # _ _ ____ _ |
| 3 | # Project ___| | | | _ \| | |
| 4 | # / __| | | | |_) | | |
| 5 | # | (__| |_| | _ <| |___ |
| 6 | # \___|\___/|_| \_\_____| |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 7 | # |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 8 | # Copyright (C) 1998 - 2015, Daniel Stenberg, <daniel@haxx.se>, et al. |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 9 | # |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 10 | # This software is licensed as described in the file COPYING, which |
| 11 | # you should have received as part of this distribution. The terms |
| 12 | # are also available at http://curl.haxx.se/docs/copyright.html. |
| 13 | # |
| 14 | # You may opt to use, copy, modify, merge, publish, distribute and/or sell |
| 15 | # copies of the Software, and permit persons to whom the Software is |
| 16 | # furnished to do so, under the terms of the COPYING file. |
| 17 | # |
| 18 | # This software is distributed on an "AS IS" basis, WITHOUT WARRANTY OF ANY |
| 19 | # KIND, either express or implied. |
| 20 | # |
| 21 | ########################################################################### |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 22 | |
| 23 | AUTOMAKE_OPTIONS = foreign no-dependencies |
| 24 | |
| 25 | man_MANS = curl.1 curl-config.1 |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 26 | noinst_man_MANS = mk-ca-bundle.1 |
| 27 | GENHTMLPAGES = curl.html curl-config.html mk-ca-bundle.html |
| 28 | PDFPAGES = curl.pdf curl-config.pdf mk-ca-bundle.pdf |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 29 | |
| 30 | HTMLPAGES = $(GENHTMLPAGES) index.html |
| 31 | |
| 32 | SUBDIRS = examples libcurl |
| 33 | |
| 34 | CLEANFILES = $(GENHTMLPAGES) $(PDFPAGES) |
| 35 | |
| 36 | EXTRA_DIST = MANUAL BUGS CONTRIBUTE FAQ FEATURES INTERNALS SSLCERTS \ |
| 37 | README.win32 RESOURCES TODO TheArtOfHttpScripting THANKS VERSIONS \ |
| 38 | KNOWN_BUGS BINDINGS $(man_MANS) $(HTMLPAGES) HISTORY INSTALL \ |
Bertrand SIMONNET | e6cd738 | 2015-07-01 15:39:44 -0700 | [diff] [blame] | 39 | $(PDFPAGES) LICENSE-MIXING README.netware DISTRO-DILEMMA INSTALL.devcpp \ |
| 40 | MAIL-ETIQUETTE HTTP-COOKIES SECURITY RELEASE-PROCEDURE \ |
| 41 | SSL-PROBLEMS HTTP2.md ROADMAP.md |
Lucas Eckels | 9bd90e6 | 2012-08-06 15:07:02 -0700 | [diff] [blame] | 42 | |
| 43 | MAN2HTML= roffit < $< >$@ |
| 44 | |
| 45 | SUFFIXES = .1 .html .pdf |
| 46 | |
| 47 | html: $(HTMLPAGES) |
| 48 | cd libcurl; make html |
| 49 | |
| 50 | pdf: $(PDFPAGES) |
| 51 | cd libcurl; make pdf |
| 52 | |
| 53 | .1.html: |
| 54 | $(MAN2HTML) |
| 55 | |
| 56 | .1.pdf: |
| 57 | @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \ |
| 58 | groff -Tps -man $< >$$foo.ps; \ |
| 59 | ps2pdf $$foo.ps $@; \ |
| 60 | rm $$foo.ps; \ |
| 61 | echo "converted $< to $@") |
| 62 | |