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