blob: 8b3585687b7201ac036b4bc59a6bff57d02871d8 [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
15osmo-release.mk: git-version-gen
16
Harald Welte4cd3d8a2010-03-23 00:30:19 +080017BUILT_SOURCES = $(top_srcdir)/.version
18$(top_srcdir)/.version:
19 echo $(VERSION) > $@-t && mv $@-t $@
20dist-hook:
21 echo $(VERSION) > $(distdir)/.tarball-version
Holger Hans Peter Freytherec4f1602011-07-17 12:13:31 +020022
Maxff932bb2017-07-04 18:19:38 +020023EXTRA_DIST = git-version-gen .version README.md osmo-release.mk
Harald Welte21e73c22011-08-17 19:33:06 +020024
25if HAVE_DOXYGEN
26
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070027html_DATA = $(top_builddir)/doc/html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020028
Neels Hofmeyr249fb712017-06-20 02:52:38 +020029doc: $(html_DATA)
30
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070031$(html_DATA): $(top_builddir)/doc/core/html/index.html \
Harald Welte21e73c22011-08-17 19:33:06 +020032 $(top_builddir)/doc/gsm/html/index.html \
33 $(top_builddir)/doc/vty/html/index.html \
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070034 $(top_builddir)/doc/codec/html/index.html \
Neels Hofmeyr249fb712017-06-20 02:52:38 +020035 $(top_builddir)/doc/coding/html/index.html \
36 $(top_builddir)/doc/gb/html/index.html
Harald Welte7992af02011-08-17 19:37:26 +020037 cd $(top_builddir)/doc && tar cf html.tar */html
Harald Welte21e73c22011-08-17 19:33:06 +020038
Harald Weltec7859ed2011-08-20 12:54:17 +020039$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
Harald Welte09b4c222011-08-20 12:17:02 +020040 @rm -rf doc/core
Harald Welte02624d22011-08-17 19:41:49 +020041 mkdir -p doc/core
Harald Weltec7859ed2011-08-20 12:54:17 +020042 $(DOXYGEN) Doxyfile.core
Harald Welte21e73c22011-08-17 19:33:06 +020043
44$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
Harald Welte09b4c222011-08-20 12:17:02 +020045 @rm -rf doc/gsm
Harald Welte02624d22011-08-17 19:41:49 +020046 mkdir -p doc/gsm
Harald Welte21e73c22011-08-17 19:33:06 +020047 $(DOXYGEN) Doxyfile.gsm
48
49$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
Holger Hans Peter Freyther8297c812011-11-18 23:14:24 +010050 @rm -rf doc/vty/{html,latex}
Harald Welte21e73c22011-08-17 19:33:06 +020051 $(DOXYGEN) Doxyfile.vty
52
53$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
Harald Welte09b4c222011-08-20 12:17:02 +020054 @rm -rf doc/codec
Harald Welte02624d22011-08-17 19:41:49 +020055 mkdir -p doc/codec
Harald Welte21e73c22011-08-17 19:33:06 +020056 $(DOXYGEN) Doxyfile.codec
57
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070058$(top_builddir)/doc/coding/html/index.html: Doxyfile.coding
59 @rm -rf doc/coding
60 mkdir -p doc/coding
61 $(DOXYGEN) Doxyfile.coding
62
Neels Hofmeyr249fb712017-06-20 02:52:38 +020063$(top_builddir)/doc/gb/html/index.html: $(SOURCES) Doxyfile.gb
64 @rm -rf doc/gb
65 mkdir -p doc/gb
66 $(DOXYGEN) Doxyfile.gb
67
Harald Welte21e73c22011-08-17 19:33:06 +020068install-data-hook:
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070069 cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020070
71uninstall-hook:
Neels Hofmeyr249fb712017-06-20 02:52:38 +020072 cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding,gb}
Harald Welte21e73c22011-08-17 19:33:06 +020073
Neels Hofmeyr249fb712017-06-20 02:52:38 +020074DX_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 +020075endif
Harald Welte47945f02011-08-20 13:00:37 +020076
77MOSTLYCLEANFILES = $(DX_CLEAN)