1 ACLOCAL_AMFLAGS = -I m4
3 INCLUDES = $(all_includes) -I$(top_srcdir)/include
4 SUBDIRS = include src src/vty src/codec src/gsm src/gb tests utils
6 pkgconfigdir = $(libdir)/pkgconfig
7 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 $@
14 echo $(VERSION) > $(distdir)/.tarball-version
16 EXTRA_DIST = git-version-gen
20 html_DATA = $(top_builddir)/doc/html.tar
22 $(html_DATA): $(top_builddir)/doc/core/html/index.html \
23 $(top_builddir)/doc/gsm/html/index.html \
24 $(top_builddir)/doc/vty/html/index.html \
25 $(top_builddir)/doc/codec/html/index.html
26 cd $(top_builddir)/doc && tar cf html.tar */html
28 $(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
31 $(DOXYGEN) Doxyfile.core
33 $(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
36 $(DOXYGEN) Doxyfile.gsm
38 $(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
41 $(DOXYGEN) Doxyfile.vty
43 $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
46 $(DOXYGEN) Doxyfile.codec
49 cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
52 cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec}
54 DX_CLEAN = doc/{core,gsm,vty,codec}/{html,latex}/* doc/html.tar
57 MOSTLYCLEANFILES = $(DX_CLEAN)