blob: 1d17da5b3c363c18a9466f7a065998f79e681422 [file] [log] [blame]
Harald Welte4cd3d8a2010-03-23 00:30:19 +08001ACLOCAL_AMFLAGS = -I m4
Harald Welte3cae0392010-02-20 21:09:24 +01002
Harald Welted54c2ee2012-01-17 18:25:50 +01003AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include
Vadim Yanitskiy3262f822016-09-23 01:48:59 +07004SUBDIRS = include src src/vty src/codec src/gsm src/coding src/gb src/ctrl src/sim tests utils
Harald Welte3cae0392010-02-20 21:09:24 +01005
6pkgconfigdir = $(libdir)/pkgconfig
Harald Welte641f7ce2012-06-17 23:05:26 +08007pkgconfig_DATA = libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc \
Vadim Yanitskiy3262f822016-09-23 01:48:59 +07008 libosmogb.pc libosmoctrl.pc libosmocoding.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
ikostov3e6d5702017-02-15 17:55:36 +010016EXTRA_DIST = git-version-gen .version
Harald Welte21e73c22011-08-17 19:33:06 +020017
18if HAVE_DOXYGEN
19
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070020html_DATA = $(top_builddir)/doc/html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020021
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070022$(html_DATA): $(top_builddir)/doc/core/html/index.html \
Harald Welte21e73c22011-08-17 19:33:06 +020023 $(top_builddir)/doc/gsm/html/index.html \
24 $(top_builddir)/doc/vty/html/index.html \
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070025 $(top_builddir)/doc/codec/html/index.html \
26 $(top_builddir)/doc/coding/html/index.html
Harald Welte7992af02011-08-17 19:37:26 +020027 cd $(top_builddir)/doc && tar cf html.tar */html
Harald Welte21e73c22011-08-17 19:33:06 +020028
Harald Weltec7859ed2011-08-20 12:54:17 +020029$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
Harald Welte09b4c222011-08-20 12:17:02 +020030 @rm -rf doc/core
Harald Welte02624d22011-08-17 19:41:49 +020031 mkdir -p doc/core
Harald Weltec7859ed2011-08-20 12:54:17 +020032 $(DOXYGEN) Doxyfile.core
Harald Welte21e73c22011-08-17 19:33:06 +020033
34$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
Harald Welte09b4c222011-08-20 12:17:02 +020035 @rm -rf doc/gsm
Harald Welte02624d22011-08-17 19:41:49 +020036 mkdir -p doc/gsm
Harald Welte21e73c22011-08-17 19:33:06 +020037 $(DOXYGEN) Doxyfile.gsm
38
39$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
Holger Hans Peter Freyther8297c812011-11-18 23:14:24 +010040 @rm -rf doc/vty/{html,latex}
Harald Welte21e73c22011-08-17 19:33:06 +020041 $(DOXYGEN) Doxyfile.vty
42
43$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
Harald Welte09b4c222011-08-20 12:17:02 +020044 @rm -rf doc/codec
Harald Welte02624d22011-08-17 19:41:49 +020045 mkdir -p doc/codec
Harald Welte21e73c22011-08-17 19:33:06 +020046 $(DOXYGEN) Doxyfile.codec
47
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070048$(top_builddir)/doc/coding/html/index.html: Doxyfile.coding
49 @rm -rf doc/coding
50 mkdir -p doc/coding
51 $(DOXYGEN) Doxyfile.coding
52
Harald Welte21e73c22011-08-17 19:33:06 +020053install-data-hook:
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070054 cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020055
56uninstall-hook:
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070057 cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding}
Harald Welte21e73c22011-08-17 19:33:06 +020058
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070059DX_CLEAN = doc/{core,gsm,vty,codec,coding}/html/search/* doc/{core,gsm,vty,codec,coding}/{html,latex}/* doc/html.tar doc/{core,gsm,vty,codec,coding}/doxygen_sqlite3.db doc/*.tag
Harald Welte21e73c22011-08-17 19:33:06 +020060endif
Harald Welte47945f02011-08-20 13:00:37 +020061
62MOSTLYCLEANFILES = $(DX_CLEAN)