Makefile.am 2.7 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2013, 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. serverhelp.pm tftpserver.pl rtspserver.pl directories.pm symbol-scan.pl \
  28. CMakeLists.txt mem-include-scan.pl valgrind.supp http_pipe.py
  29. DISTCLEANFILES = configurehelp.pm
  30. # we have two variables here to make sure DIST_SUBDIRS won't get 'unit'
  31. # added twice as then targets such as 'distclean' misbehave and try to
  32. # do things twice in that subdir at times (and thus fails).
  33. if BUILD_UNITTESTS
  34. BUILD_UNIT = unit
  35. DIST_UNIT =
  36. else
  37. BUILD_UNIT =
  38. DIST_UNIT = unit
  39. endif
  40. SUBDIRS = certs data server libtest $(BUILD_UNIT)
  41. DIST_SUBDIRS = $(SUBDIRS) $(DIST_UNIT)
  42. PERLFLAGS = -I$(srcdir)
  43. CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid
  44. MAN2HTML= roffit < $< >$@
  45. curl:
  46. @cd $(top_builddir) && $(MAKE)
  47. if CROSSCOMPILING
  48. TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
  49. else # if not cross-compiling:
  50. TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
  51. TEST_Q = -a -s
  52. TEST_AM = -a -am
  53. TEST_F = -a -p -r
  54. TEST_T = -a -t
  55. endif
  56. # make sure that PERL is pointing to an executable
  57. perlcheck:
  58. @if ! test -x "$(PERL)"; then echo "No perl!"; exit 2; fi
  59. test: perlcheck all
  60. $(TEST)
  61. quiet-test: perlcheck all
  62. $(TEST) $(TEST_Q)
  63. am-test: perlcheck all
  64. $(TEST) $(TEST_AM)
  65. full-test: perlcheck all
  66. $(TEST) $(TEST_F)
  67. torture-test: perlcheck all
  68. $(TEST) $(TEST_T)
  69. .1.html:
  70. $(MAN2HTML)
  71. .1.pdf:
  72. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  73. groff -Tps -man $< >$$foo.ps; \
  74. ps2pdf $$foo.ps $@; \
  75. rm $$foo.ps; \
  76. echo "converted $< to $@")