Makefile.am 2.0 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374
  1. #***************************************************************************
  2. # _ _ ____ _
  3. # Project ___| | | | _ \| |
  4. # / __| | | | |_) | |
  5. # | (__| |_| | _ <| |___
  6. # \___|\___/|_| \_\_____|
  7. #
  8. # Copyright (C) 1998 - 2008, 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. # $Id$
  22. ###########################################################################
  23. HTMLPAGES = testcurl.html runtests.html
  24. PDFPAGES = testcurl.pdf runtests.pdf
  25. EXTRA_DIST = ftpserver.pl httpserver.pl httpsserver.pl runtests.pl getpart.pm \
  26. FILEFORMAT README stunnel.pem memanalyze.pl testcurl.pl valgrind.pm ftp.pm \
  27. sshserver.pl sshhelp.pm testcurl.1 runtests.1 $(HTMLPAGES) $(PDFPAGES)
  28. SUBDIRS = data server libtest
  29. PERLFLAGS = -I$(srcdir)
  30. CLEANFILES = .http.pid .https.pid .ftp.pid .ftps.pid
  31. MAN2HTML= roffit < $< >$@
  32. curl:
  33. @cd $(top_builddir) && $(MAKE)
  34. if CROSSCOMPILING
  35. TEST = @echo "NOTICE: we can't run the tests when cross-compiling!"
  36. TEST_Q =
  37. TEST_F =
  38. TEST_T =
  39. else # if not cross-compiling:
  40. TEST = srcdir=$(srcdir) $(PERL) $(PERLFLAGS) $(srcdir)/runtests.pl
  41. TEST_Q = -a -s
  42. TEST_F = -a -p
  43. TEST_T = -a -t
  44. endif
  45. test: all
  46. $(TEST)
  47. quiet-test: all
  48. $(TEST) $(TEST_Q)
  49. full-test: all
  50. $(TEST) $(TEST_F)
  51. torture-test: all
  52. $(TEST) $(TEST_T)
  53. .1.html:
  54. $(MAN2HTML)
  55. .1.pdf:
  56. @(foo=`echo $@ | sed -e 's/\.[0-9]$$//g'`; \
  57. groff -Tps -man $< >$$foo.ps; \
  58. ps2pdf $$foo.ps $@; \
  59. rm $$foo.ps; \
  60. echo "converted $< to $@")