Makefile.am 2.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2010, Daniel Stenberg, <daniel@haxx.se>, et al.
  9. #
  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. ###########################################################################
  22. HTMLPAGES = testcurl.html runtests.html
  23. PDFPAGES = testcurl.pdf runtests.pdf
  24. EXTRA_DIST = ftpserver.pl httpserver.pl secureserver.pl runtests.pl getpart.pm \
  25. FILEFORMAT README stunnel.pem memanalyze.pl testcurl.pl valgrind.pm ftp.pm \
  26. sshserver.pl sshhelp.pm testcurl.1 runtests.1 $(HTMLPAGES) $(PDFPAGES) \
  27. CMakeLists.txt certs/scripts/*.sh certs/Server* certs/EdelCurlRoot* \
  28. serverhelp.pm tftpserver.pl rtspserver.pl directories.pm symbol-scan.pl
  29. SUBDIRS = data server libtest
  30. PERLFLAGS = -I$(srcdir)
  31. CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid
  32. MAN2HTML= roffit < $< >$@
  33. curl:
  34. @cd $(top_builddir) && $(MAKE)
  35. if CROSSCOMPILING
  36. TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
  37. TEST_Q =
  38. TEST_F =
  39. TEST_T =
  40. else # if not cross-compiling:
  41. TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
  42. TEST_Q = -a -s
  43. TEST_F = -a -p -r
  44. TEST_T = -a -t
  45. endif
  46. test: all
  47. $(TEST)
  48. quiet-test: all
  49. $(TEST) $(TEST_Q)
  50. full-test: all
  51. $(TEST) $(TEST_F)
  52. torture-test: all
  53. $(TEST) $(TEST_T)
  54. .1.html:
  55. $(MAN2HTML)
  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 $@")