blob: de5eb35d4be8e60ebdbc546ebb33ffcf5fd19d17 [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
Harald Welte40f35212018-09-29 01:41:58 +02004SUBDIRS = include src src/vty src/codec src/gsm src/coding src/gb src/ctrl src/sim src/pseudotalloc utils tests
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 \
Martin Hauke13e7f052018-02-10 17:48:09 +01008 libosmogb.pc libosmoctrl.pc libosmocoding.pc libosmosim.pc
Harald Welte4cd3d8a2010-03-23 00:30:19 +08009
Maxff932bb2017-07-04 18:19:38 +020010@RELMAKE@
11
12relengdir = $(includedir)
13releng_DATA = osmo-release.mk
14
Harald Welteee497f22017-10-03 16:54:41 +080015dist_bin_SCRIPTS = osmo-release.sh
16
Maxff932bb2017-07-04 18:19:38 +020017osmo-release.mk: git-version-gen
18
Harald Welte4cd3d8a2010-03-23 00:30:19 +080019BUILT_SOURCES = $(top_srcdir)/.version
20$(top_srcdir)/.version:
21 echo $(VERSION) > $@-t && mv $@-t $@
22dist-hook:
23 echo $(VERSION) > $(distdir)/.tarball-version
Holger Hans Peter Freytherec4f1602011-07-17 12:13:31 +020024
Harald Welteee497f22017-10-03 16:54:41 +080025EXTRA_DIST = git-version-gen .version README.md osmo-release.mk osmo-release.sh
Harald Welte21e73c22011-08-17 19:33:06 +020026
27if HAVE_DOXYGEN
28
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070029html_DATA = $(top_builddir)/doc/html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020030
Neels Hofmeyr249fb712017-06-20 02:52:38 +020031doc: $(html_DATA)
32
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070033$(html_DATA): $(top_builddir)/doc/core/html/index.html \
Harald Welte21e73c22011-08-17 19:33:06 +020034 $(top_builddir)/doc/gsm/html/index.html \
35 $(top_builddir)/doc/vty/html/index.html \
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070036 $(top_builddir)/doc/codec/html/index.html \
Neels Hofmeyr249fb712017-06-20 02:52:38 +020037 $(top_builddir)/doc/coding/html/index.html \
Harald Welteb4186822018-05-26 17:25:11 +020038 $(top_builddir)/doc/ctrl/html/index.html \
Neels Hofmeyr249fb712017-06-20 02:52:38 +020039 $(top_builddir)/doc/gb/html/index.html
Harald Welte7992af02011-08-17 19:37:26 +020040 cd $(top_builddir)/doc && tar cf html.tar */html
Harald Welte21e73c22011-08-17 19:33:06 +020041
Harald Weltec7859ed2011-08-20 12:54:17 +020042$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
Harald Welte09b4c222011-08-20 12:17:02 +020043 @rm -rf doc/core
Harald Welte02624d22011-08-17 19:41:49 +020044 mkdir -p doc/core
Harald Weltec7859ed2011-08-20 12:54:17 +020045 $(DOXYGEN) Doxyfile.core
Harald Welte21e73c22011-08-17 19:33:06 +020046
47$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
Harald Welte09b4c222011-08-20 12:17:02 +020048 @rm -rf doc/gsm
Harald Welte02624d22011-08-17 19:41:49 +020049 mkdir -p doc/gsm
Harald Welte21e73c22011-08-17 19:33:06 +020050 $(DOXYGEN) Doxyfile.gsm
51
52$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
Holger Hans Peter Freyther8297c812011-11-18 23:14:24 +010053 @rm -rf doc/vty/{html,latex}
Harald Welte21e73c22011-08-17 19:33:06 +020054 $(DOXYGEN) Doxyfile.vty
55
56$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
Harald Welte09b4c222011-08-20 12:17:02 +020057 @rm -rf doc/codec
Harald Welte02624d22011-08-17 19:41:49 +020058 mkdir -p doc/codec
Harald Welte21e73c22011-08-17 19:33:06 +020059 $(DOXYGEN) Doxyfile.codec
60
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070061$(top_builddir)/doc/coding/html/index.html: Doxyfile.coding
62 @rm -rf doc/coding
63 mkdir -p doc/coding
64 $(DOXYGEN) Doxyfile.coding
65
Harald Welteb4186822018-05-26 17:25:11 +020066$(top_builddir)/doc/ctrl/html/index.html: $(SOURCES) Doxyfile.ctrl
67 @rm -rf doc/ctrl
68 mkdir -p doc/ctrl
69 $(DOXYGEN) Doxyfile.ctrl
70
Neels Hofmeyr249fb712017-06-20 02:52:38 +020071$(top_builddir)/doc/gb/html/index.html: $(SOURCES) Doxyfile.gb
72 @rm -rf doc/gb
73 mkdir -p doc/gb
74 $(DOXYGEN) Doxyfile.gb
75
Harald Welte21e73c22011-08-17 19:33:06 +020076install-data-hook:
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070077 cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020078
79uninstall-hook:
Harald Welteb4186822018-05-26 17:25:11 +020080 cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding,ctrl,gb}
Harald Welte21e73c22011-08-17 19:33:06 +020081
Harald Welteb4186822018-05-26 17:25:11 +020082DX_CLEAN = doc/{core,gsm,vty,codec,coding,ctrl,gb}/html/search/* doc/{core,gsm,vty,codec,coding,ctrl,gb}/{html,latex}/* doc/html.tar doc/{core,gsm,vty,codec,coding,ctrl,gb}/doxygen_sqlite3.db doc/*.tag
Harald Welte21e73c22011-08-17 19:33:06 +020083endif
Harald Welte47945f02011-08-20 13:00:37 +020084
85MOSTLYCLEANFILES = $(DX_CLEAN)