blob: 5f23673eaeef8451b27fe3f199abdaeb64f0ed75 [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 Welte898ffef2017-05-15 21:37:34 +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 \
Vadim Yanitskiy3262f822016-09-23 01:48:59 +07008 libosmogb.pc libosmoctrl.pc libosmocoding.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 \
38 $(top_builddir)/doc/gb/html/index.html
Harald Welte7992af02011-08-17 19:37:26 +020039 cd $(top_builddir)/doc && tar cf html.tar */html
Harald Welte21e73c22011-08-17 19:33:06 +020040
Harald Weltec7859ed2011-08-20 12:54:17 +020041$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
Harald Welte09b4c222011-08-20 12:17:02 +020042 @rm -rf doc/core
Harald Welte02624d22011-08-17 19:41:49 +020043 mkdir -p doc/core
Harald Weltec7859ed2011-08-20 12:54:17 +020044 $(DOXYGEN) Doxyfile.core
Harald Welte21e73c22011-08-17 19:33:06 +020045
46$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
Harald Welte09b4c222011-08-20 12:17:02 +020047 @rm -rf doc/gsm
Harald Welte02624d22011-08-17 19:41:49 +020048 mkdir -p doc/gsm
Harald Welte21e73c22011-08-17 19:33:06 +020049 $(DOXYGEN) Doxyfile.gsm
50
51$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
Holger Hans Peter Freyther8297c812011-11-18 23:14:24 +010052 @rm -rf doc/vty/{html,latex}
Harald Welte21e73c22011-08-17 19:33:06 +020053 $(DOXYGEN) Doxyfile.vty
54
55$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
Harald Welte09b4c222011-08-20 12:17:02 +020056 @rm -rf doc/codec
Harald Welte02624d22011-08-17 19:41:49 +020057 mkdir -p doc/codec
Harald Welte21e73c22011-08-17 19:33:06 +020058 $(DOXYGEN) Doxyfile.codec
59
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070060$(top_builddir)/doc/coding/html/index.html: Doxyfile.coding
61 @rm -rf doc/coding
62 mkdir -p doc/coding
63 $(DOXYGEN) Doxyfile.coding
64
Neels Hofmeyr249fb712017-06-20 02:52:38 +020065$(top_builddir)/doc/gb/html/index.html: $(SOURCES) Doxyfile.gb
66 @rm -rf doc/gb
67 mkdir -p doc/gb
68 $(DOXYGEN) Doxyfile.gb
69
Harald Welte21e73c22011-08-17 19:33:06 +020070install-data-hook:
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070071 cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020072
73uninstall-hook:
Neels Hofmeyr249fb712017-06-20 02:52:38 +020074 cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding,gb}
Harald Welte21e73c22011-08-17 19:33:06 +020075
Neels Hofmeyr249fb712017-06-20 02:52:38 +020076DX_CLEAN = doc/{core,gsm,vty,codec,coding,gb}/html/search/* doc/{core,gsm,vty,codec,coding,gb}/{html,latex}/* doc/html.tar doc/{core,gsm,vty,codec,coding,gb}/doxygen_sqlite3.db doc/*.tag
Harald Welte21e73c22011-08-17 19:33:06 +020077endif
Harald Welte47945f02011-08-20 13:00:37 +020078
79MOSTLYCLEANFILES = $(DX_CLEAN)