Makefile.am 2.05 KB
Newer Older
1 2 3 4 5 6 7
#
# Makefile.am for sofia-sip package
#
# Copyright (C) 2005,2006 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.

8
AUTOMAKE_OPTIONS = foreign 1.7
Pekka Pessi's avatar
Pekka Pessi committed
9

10
SUBDIRS = libsofia-sip-ua $(GLIB_SUBDIRS) utils packages tests
11
DIST_SUBDIRS = libsofia-sip-ua libsofia-sip-ua-glib utils packages \
12
	tests win32 open_c
13

14 15
# note: when glib devel files are not available, make should not
#       enter the libsofia-sip-ua-glib subdir at all
16 17 18
if HAVE_GLIB
GLIB_SUBDIRS = libsofia-sip-ua-glib
endif
Pekka Pessi's avatar
Pekka Pessi committed
19 20 21 22

PACKAGE = @PACKAGE@
VERSION = @VERSION@

23
EXTRA_DIST =	AUTHORS COPYING COPYRIGHTS ChangeLog.ext-trees \
24
		README README.developers RELEASE TODO
Pekka Pessi's avatar
Pekka Pessi committed
25 26 27

ACLOCAL_AMFLAGS = -I m4

28
EXTRA_DIST += 	m4/sac-general.m4 m4/sac-coverage.m4 \
29
		m4/sac-su2.m4 m4/sac-tport.m4 m4/sac-openssl.m4
30

31 32 33 34
EXTRA_DIST +=   docs/build_system.txt \
		docs/devel_platform_notes.txt \
		docs/release_management.txt

35 36
EXTRA_DIST +=   scripts/lcov-report scripts/uncovered \
		scripts/hide_emails.sh
Pekka Pessi's avatar
Pekka Pessi committed
37

Pekka Pessi's avatar
Pekka Pessi committed
38
dist_man_MANS = man/man1/sip-date.1 man/man1/sip-options.1 \
39 40
		man/man1/localinfo.1 man/man1/addrinfo.1 \
		man/man1/stunc.1 man/man1/sip-dig.1
41

42 43
$(dist_man_MANS): manpages

44
manpages:
45
	-mkdir -p man man/man1 2> /dev/null
Pekka Pessi's avatar
Pekka Pessi committed
46
if HAVE_DOXYGEN
47
	$(MAKE) $(AM_MAKEFLAGS) -C libsofia-sip-ua/docs built-sources
48 49 50
	@echo 'cd utils && $(DOXYGEN)'
	@cd utils && \
	{ exec 3>&1 1>&2; { $(DOXYGEN) 2>&1; echo $$? >& 3 ;} | \
51
	  fgrep -v 'Warning: explicit' ;} | { read x; exit $$x ;}
52
	@rm -f man/man1/_*.1
Pekka Pessi's avatar
Pekka Pessi committed
53
else
54
	-touch $(dist_man_MANS)
55 56
endif

57 58
CLEANFILES = $(dist_man_MANS)

Pekka Pessi's avatar
Pekka Pessi committed
59
built-sources clean-built-sources valcheck doxygen:
60 61 62 63 64 65 66
	@failcom='exit 1'; for f in x $$MAKEFLAGS; do \
	case $$f in *=* | --[!k]*);; *k*) failcom='fail=yes';; esac; done; \
	for i in libsofia-sip-ua $(GLIB_SUBDIRS) ; do \
	  (cd $$i && $(MAKE) $(AM_MAKEFLAGS) $@) || eval $$failcom; \
	done ; \
	test -z "$$fail"

Pekka Pessi's avatar
Pekka Pessi committed
67 68 69 70 71 72 73 74
PHONY = built-sources clean-built-sources valcheck doxygen manpages

if HAVE_LCOV

include $(top_srcdir)/rules/lcov.am

lcov-upload: lcov
	rsync -rvz -e ssh --delete lcov/* sofia-sip.org:/var/www/coverage/lcov/
75 76 77 78

endif

.PHONY: $(PHONY)