2010-02-20 20:09:24 +00:00
|
|
|
AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
|
2010-03-22 16:30:19 +00:00
|
|
|
ACLOCAL_AMFLAGS = -I m4
|
2010-02-20 20:09:24 +00:00
|
|
|
|
|
|
|
INCLUDES = $(all_includes) -I$(top_srcdir)/include
|
2011-08-02 11:44:54 +00:00
|
|
|
SUBDIRS = include src tests utils
|
2010-02-20 20:09:24 +00:00
|
|
|
|
|
|
|
pkgconfigdir = $(libdir)/pkgconfig
|
2011-03-23 17:08:08 +00:00
|
|
|
pkgconfig_DATA = libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc
|
2010-03-22 16:30:19 +00:00
|
|
|
|
|
|
|
BUILT_SOURCES = $(top_srcdir)/.version
|
|
|
|
$(top_srcdir)/.version:
|
|
|
|
echo $(VERSION) > $@-t && mv $@-t $@
|
|
|
|
dist-hook:
|
|
|
|
echo $(VERSION) > $(distdir)/.tarball-version
|
2011-07-17 10:13:31 +00:00
|
|
|
|
|
|
|
EXTRA_DIST = git-version-gen
|
2011-08-17 17:33:06 +00:00
|
|
|
|
|
|
|
if HAVE_DOXYGEN
|
|
|
|
|
2011-08-21 15:18:23 +00:00
|
|
|
#docdir=$(datadir)/doc
|
2011-08-17 17:33:06 +00:00
|
|
|
pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
|
|
|
|
doc_htmldir=$(pkgdocdir)/html
|
|
|
|
|
|
|
|
doc_html_DATA = $(top_builddir)/doc/html.tar
|
|
|
|
|
|
|
|
$(doc_html_DATA): $(top_builddir)/doc/core/html/index.html \
|
|
|
|
$(top_builddir)/doc/gsm/html/index.html \
|
|
|
|
$(top_builddir)/doc/vty/html/index.html \
|
|
|
|
$(top_builddir)/doc/codec/html/index.html
|
2011-08-17 17:37:26 +00:00
|
|
|
cd $(top_builddir)/doc && tar cf html.tar */html
|
2011-08-17 17:33:06 +00:00
|
|
|
|
2011-08-20 10:54:17 +00:00
|
|
|
$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
|
2011-08-20 10:17:02 +00:00
|
|
|
@rm -rf doc/core
|
2011-08-17 17:41:49 +00:00
|
|
|
mkdir -p doc/core
|
2011-08-20 10:54:17 +00:00
|
|
|
$(DOXYGEN) Doxyfile.core
|
2011-08-17 17:33:06 +00:00
|
|
|
|
|
|
|
$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
|
2011-08-20 10:17:02 +00:00
|
|
|
@rm -rf doc/gsm
|
2011-08-17 17:41:49 +00:00
|
|
|
mkdir -p doc/gsm
|
2011-08-17 17:33:06 +00:00
|
|
|
$(DOXYGEN) Doxyfile.gsm
|
|
|
|
|
|
|
|
$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
|
2011-08-20 10:17:02 +00:00
|
|
|
@rm -rf doc/vty
|
2011-08-17 17:41:49 +00:00
|
|
|
mkdir -p doc/vty
|
2011-08-17 17:33:06 +00:00
|
|
|
$(DOXYGEN) Doxyfile.vty
|
|
|
|
|
|
|
|
$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
|
2011-08-20 10:17:02 +00:00
|
|
|
@rm -rf doc/codec
|
2011-08-17 17:41:49 +00:00
|
|
|
mkdir -p doc/codec
|
2011-08-17 17:33:06 +00:00
|
|
|
$(DOXYGEN) Doxyfile.codec
|
|
|
|
|
|
|
|
install-data-hook:
|
|
|
|
cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar
|
|
|
|
|
|
|
|
uninstall-hook:
|
2011-08-20 10:54:17 +00:00
|
|
|
cd $(DESTDIR)$(doc_htmldir) && rm -rf {core,gsm,vty,codec}
|
2011-08-17 17:33:06 +00:00
|
|
|
|
2011-08-20 11:00:37 +00:00
|
|
|
DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar
|
2011-08-17 17:33:06 +00:00
|
|
|
endif
|
2011-08-20 11:00:37 +00:00
|
|
|
|
|
|
|
MOSTLYCLEANFILES = $(DX_CLEAN)
|