Makefile.am 1.2 KB
Newer Older
1 2 3 4 5 6 7 8 9 10
#
# Makefile.am for libsofia-sip-ua-glib module
#
# Copyright (C) 2006 Nokia Corporation
# Contact: Pekka Pessi <pekka.pessi@nokia.com>
# Licensed under LGPL. See file COPYING.
#

AUTOMAKE_OPTIONS = foreign

11 12
DIST_SUBDIRS=su-glib nua-glib

13 14 15 16 17 18 19 20 21
GLIB_SUBDIRS=su-glib
GLIB_TARGETS=su-glib/libsu-glib.la

if HAVE_GOBJECT
GOBJECT_SUBDIRS=nua-glib
GOBJECT_TARGETS=nua-glib/libnua-glib.la
endif

# note: order does matter in the subdir list
22 23
SUBDIRS = $(GLIB_SUBDIRS) $(GOBJECT_SUBDIRS)

24 25 26
lib_LTLIBRARIES = libsofia-sip-ua-glib.la

libsofia_sip_ua_glib_la_SOURCES = 
27
libsofia_sip_ua_glib_la_LIBADD = $(GLIB_TARGETS) $(GOBJECT_TARGETS)
28

29 30
DOXYGEN = doxygen

31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49
built-sources-recursive clean-built-sources-recursive:
	target=`echo $@ | sed s/-recursive//`; \
	list='$(SUBDIRS)'; for subdir in $$list; do \
	  echo "Making $@ in $$subdir"; \
	  (cd $$subdir && $(MAKE) $(AM_MAKEFLAGS) $$target) \
	done;

doxygen: built-sources 
	@cd ${srcdir} ;\
	for d in $(DIST_SUBDIRS) $(DIST_SUBDIRS); do \
	  test -r $$d/Doxyfile \
	  && pushd $$d > /dev/null \
	  && echo running ${DOXYGEN} in $$d \
          && ${DOXYGEN} \
          && popd > /dev/null ; \
	done
#	cd ${srcdir}/docs/html && ../hide_emails.sh

.PHONY: built-sources built-sources-am doxygen