Makefile.am 2.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2011, 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. certs/srp-verifier-conf certs/srp-verifier-db
  30. if BUILD_UNITTESTS
  31. BUILD_UNIT = unit
  32. else
  33. BUILD_UNIT =
  34. endif
  35. SUBDIRS = data server libtest $(BUILD_UNIT)
  36. DIST_SUBDIRS = $(SUBDIRS) unit
  37. PERLFLAGS = -I$(srcdir)
  38. CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid
  39. MAN2HTML= roffit < $< >$@
  40. curl:
  41. @cd $(top_builddir) && $(MAKE)
  42. if CROSSCOMPILING
  43. TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
  44. TEST_Q =
  45. TEST_F =
  46. TEST_T =
  47. else # if not cross-compiling:
  48. TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
  49. TEST_Q = -a -s
  50. TEST_F = -a -p -r
  51. TEST_T = -a -t
  52. endif
  53. test: all
  54. $(TEST)
  55. quiet-test: all
  56. $(TEST) $(TEST_Q)
  57. full-test: all
  58. $(TEST) $(TEST_F)
  59. torture-test: all
  60. $(TEST) $(TEST_T)
  61. .1.html:
  62. $(MAN2HTML)
  63. .1.pdf:
  64. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  65. groff -Tps -man $< >$$foo.ps; \
  66. ps2pdf $$foo.ps $@; \
  67. rm $$foo.ps; \
  68. echo "converted $< to $@")