Makefile.am 2.2 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. #
  2. # Makefile.am for sofia-sip package
  3. #
  4. # Copyright (C) 2005,2006 Nokia Corporation
  5. # Contact: Pekka Pessi <pekka.pessi@nokia.com>
  6. # Licensed under LGPL. See file COPYING.
  7. AUTOMAKE_OPTIONS = foreign 1.7
  8. SUBDIRS = libsofia-sip-ua $(GLIB_SUBDIRS) packages # tests s2check utils
  9. DIST_SUBDIRS = s2check libsofia-sip-ua libsofia-sip-ua-glib utils packages \
  10. tests win32 open_c
  11. # note: when glib devel files are not available, make should not
  12. # enter the libsofia-sip-ua-glib subdir at all
  13. if HAVE_GLIB
  14. GLIB_SUBDIRS = libsofia-sip-ua-glib
  15. endif
  16. PACKAGE = @PACKAGE@
  17. VERSION = @VERSION@
  18. EXTRA_DIST = AUTHORS COPYING COPYRIGHTS ChangeLog.ext-trees \
  19. README README.developers RELEASE TODO
  20. ACLOCAL_AMFLAGS = -I m4
  21. EXTRA_DIST += m4/sac-general.m4 m4/sac-coverage.m4 \
  22. m4/sac-su2.m4 m4/sac-tport.m4 m4/sac-openssl.m4
  23. EXTRA_DIST += docs/build_system.txt \
  24. docs/devel_platform_notes.txt \
  25. docs/release_management.txt
  26. EXTRA_DIST += scripts/lcov-report scripts/uncovered \
  27. scripts/hide_emails.sh
  28. dist_man_MANS =
  29. # man/man1/sip-date.1 man/man1/sip-options.1 \
  30. # man/man1/localinfo.1 man/man1/addrinfo.1 \
  31. # man/man1/stunc.1 man/man1/sip-dig.1
  32. noop:
  33. @echo ok
  34. $(dist_man_MANS): manpages
  35. manpages:
  36. -mkdir -p man man/man1 2> /dev/null
  37. if HAVE_DOXYGEN
  38. $(MAKE) $(AM_MAKEFLAGS) -C libsofia-sip-ua/docs built-sources
  39. @echo 'cd utils && $(DOXYGEN)'
  40. @cd utils && \
  41. { exec 3>&1 1>&2; { $(DOXYGEN) 2>&1; echo $$? >& 3 ;} | \
  42. fgrep -v 'Warning: explicit' ;} | { read x; exit $$x ;}
  43. @rm -f man/man1/_*.1
  44. else
  45. -touch $(dist_man_MANS)
  46. endif
  47. CLEANFILES = $(dist_man_MANS)
  48. built-sources clean-built-sources valcheck doxygen:
  49. @failcom='exit 1'; for f in x $$MAKEFLAGS; do \
  50. case $$f in *=* | --[!k]*);; *k*) failcom='fail=yes';; esac; done; \
  51. for i in libsofia-sip-ua $(GLIB_SUBDIRS) ; do \
  52. (cd $$i && $(MAKE) $(AM_MAKEFLAGS) $@) || eval $$failcom; \
  53. done ; \
  54. test -z "$$fail"
  55. PHONY = built-sources clean-built-sources valcheck doxygen manpages
  56. # s2check depends on generated headers within libsofia-sip-ua
  57. all check: built-sources
  58. if HAVE_LCOV
  59. include $(top_srcdir)/rules/lcov.am
  60. lcov-upload: lcov
  61. rsync -rvz -e ssh --delete lcov/* sofia-sip.org:/var/www/coverage/lcov/
  62. endif
  63. .PHONY: $(PHONY)