blob: 64f13dd027a880aeb158b4391c0bf223442c3d0e [file] [log] [blame]
Harald Welte3cae0392010-02-20 21:09:24 +01001AUTOMAKE_OPTIONS = foreign dist-bzip2 1.6
Harald Welte4cd3d8a2010-03-23 00:30:19 +08002ACLOCAL_AMFLAGS = -I m4
Harald Welte3cae0392010-02-20 21:09:24 +01003
4INCLUDES = $(all_includes) -I$(top_srcdir)/include
Harald Welteeeb78dd2011-08-02 13:44:54 +02005SUBDIRS = include src tests utils
Harald Welte3cae0392010-02-20 21:09:24 +01006
7pkgconfigdir = $(libdir)/pkgconfig
Pablo Neira Ayusofba495e2011-03-23 18:08:08 +01008pkgconfig_DATA = libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc
Harald Welte4cd3d8a2010-03-23 00:30:19 +08009
10BUILT_SOURCES = $(top_srcdir)/.version
11$(top_srcdir)/.version:
12 echo $(VERSION) > $@-t && mv $@-t $@
13dist-hook:
14 echo $(VERSION) > $(distdir)/.tarball-version
Holger Hans Peter Freytherec4f1602011-07-17 12:13:31 +020015
16EXTRA_DIST = git-version-gen
Harald Welte21e73c22011-08-17 19:33:06 +020017
18if HAVE_DOXYGEN
19
20docdir=$(datadir)/doc
21pkgdocdir=$(docdir)/$(PACKAGE)-$(VERSION)
22doc_htmldir=$(pkgdocdir)/html
23
24doc_html_DATA = $(top_builddir)/doc/html.tar
25
26$(doc_html_DATA): $(top_builddir)/doc/core/html/index.html \
27 $(top_builddir)/doc/gsm/html/index.html \
28 $(top_builddir)/doc/vty/html/index.html \
29 $(top_builddir)/doc/codec/html/index.html
Harald Welte7992af02011-08-17 19:37:26 +020030 cd $(top_builddir)/doc && tar cf html.tar */html
Harald Welte21e73c22011-08-17 19:33:06 +020031
32$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile
33 rm -rf doc/core
34 $(DOXYGEN) Doxyfile
35
36$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
37 rm -rf doc/gsm
38 $(DOXYGEN) Doxyfile.gsm
39
40$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
41 rm -rf doc/vty
42 $(DOXYGEN) Doxyfile.vty
43
44$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
45 rm -rf doc/vty
46 $(DOXYGEN) Doxyfile.codec
47
48install-data-hook:
49 cd $(DESTDIR)$(doc_htmldir) && tar xf html.tar && rm -f html.tar
50
51uninstall-hook:
52 cd $(DESTDIR)$(doc_htmldir) && rm -f *
53
54endif