update LIBVERSION to reflect new API additions
[osmocom-bb.git] / Makefile.am
blob5a157ce7db48b24910e76e9b3a7de600f022cda8
1 AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
2 ACLOCAL_AMFLAGS = -I m4
4 INCLUDES = $(all_includes) -I$(top_srcdir)/include
5 SUBDIRS = include src tests utils
7 pkgconfigdir = $(libdir)/pkgconfig
8 pkgconfig_DATA = libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc
10 BUILT_SOURCES = $(top_srcdir)/.version
11 $(top_srcdir)/.version:
12         echo $(VERSION) > $@-t && mv $@-t $@
13 dist-hook:
14         echo $(VERSION) > $(distdir)/.tarball-version
16 EXTRA_DIST = git-version-gen
18 if HAVE_DOXYGEN
20 pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
21 doc_htmldir=$(pkgdocdir)/html
23 doc_html_DATA = $(top_builddir)/doc/html.tar
25 $(doc_html_DATA): $(top_builddir)/doc/core/html/index.html \
26                   $(top_builddir)/doc/gsm/html/index.html \
27                   $(top_builddir)/doc/vty/html/index.html \
28                   $(top_builddir)/doc/codec/html/index.html
29         cd $(top_builddir)/doc && tar cf html.tar */html
31 $(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
32         @rm -rf doc/core
33         mkdir -p doc/core
34         $(DOXYGEN) Doxyfile.core
36 $(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
37         @rm -rf doc/gsm
38         mkdir -p doc/gsm
39         $(DOXYGEN) Doxyfile.gsm
41 $(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
42         @rm -rf doc/vty
43         mkdir -p doc/vty
44         $(DOXYGEN) Doxyfile.vty
46 $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
47         @rm -rf doc/codec
48         mkdir -p doc/codec
49         $(DOXYGEN) Doxyfile.codec
51 install-data-hook:
52         cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar
54 uninstall-hook:
55         cd $(DESTDIR)$(doc_htmldir) && rm -rf {core,gsm,vty,codec}
57 DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar
58 endif
60 MOSTLYCLEANFILES = $(DX_CLEAN)