Harald Welte | 4cd3d8a | 2010-03-23 00:30:19 +0800 | [diff] [blame] | 1 | ACLOCAL_AMFLAGS = -I m4 |
Harald Welte | 3cae039 | 2010-02-20 21:09:24 +0100 | [diff] [blame] | 2 | |
Harald Welte | d54c2ee | 2012-01-17 18:25:50 +0100 | [diff] [blame] | 3 | AM_CPPFLAGS = $(all_includes) -I$(top_srcdir)/include |
Harald Welte | 898ffef | 2017-05-15 21:37:34 +0200 | [diff] [blame] | 4 | SUBDIRS = include src src/vty src/codec src/gsm src/coding src/gb src/ctrl src/sim src/pseudotalloc utils tests |
Harald Welte | 3cae039 | 2010-02-20 21:09:24 +0100 | [diff] [blame] | 5 | |
| 6 | pkgconfigdir = $(libdir)/pkgconfig |
Harald Welte | 641f7ce | 2012-06-17 23:05:26 +0800 | [diff] [blame] | 7 | pkgconfig_DATA = libosmocore.pc libosmocodec.pc libosmovty.pc libosmogsm.pc \ |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 8 | libosmogb.pc libosmoctrl.pc libosmocoding.pc |
Harald Welte | 4cd3d8a | 2010-03-23 00:30:19 +0800 | [diff] [blame] | 9 | |
Max | ff932bb | 2017-07-04 18:19:38 +0200 | [diff] [blame] | 10 | @RELMAKE@ |
| 11 | |
| 12 | relengdir = $(includedir) |
| 13 | releng_DATA = osmo-release.mk |
| 14 | |
Harald Welte | ee497f2 | 2017-10-03 16:54:41 +0800 | [diff] [blame] | 15 | dist_bin_SCRIPTS = osmo-release.sh |
| 16 | |
Max | ff932bb | 2017-07-04 18:19:38 +0200 | [diff] [blame] | 17 | osmo-release.mk: git-version-gen |
| 18 | |
Harald Welte | 4cd3d8a | 2010-03-23 00:30:19 +0800 | [diff] [blame] | 19 | BUILT_SOURCES = $(top_srcdir)/.version |
| 20 | $(top_srcdir)/.version: |
| 21 | echo $(VERSION) > $@-t && mv $@-t $@ |
| 22 | dist-hook: |
| 23 | echo $(VERSION) > $(distdir)/.tarball-version |
Holger Hans Peter Freyther | ec4f160 | 2011-07-17 12:13:31 +0200 | [diff] [blame] | 24 | |
Harald Welte | ee497f2 | 2017-10-03 16:54:41 +0800 | [diff] [blame] | 25 | EXTRA_DIST = git-version-gen .version README.md osmo-release.mk osmo-release.sh |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 26 | |
| 27 | if HAVE_DOXYGEN |
| 28 | |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 29 | html_DATA = $(top_builddir)/doc/html.tar |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 30 | |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 31 | doc: $(html_DATA) |
| 32 | |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 33 | $(html_DATA): $(top_builddir)/doc/core/html/index.html \ |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 34 | $(top_builddir)/doc/gsm/html/index.html \ |
| 35 | $(top_builddir)/doc/vty/html/index.html \ |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 36 | $(top_builddir)/doc/codec/html/index.html \ |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 37 | $(top_builddir)/doc/coding/html/index.html \ |
| 38 | $(top_builddir)/doc/gb/html/index.html |
Harald Welte | 7992af0 | 2011-08-17 19:37:26 +0200 | [diff] [blame] | 39 | cd $(top_builddir)/doc && tar cf html.tar */html |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 40 | |
Harald Welte | c7859ed | 2011-08-20 12:54:17 +0200 | [diff] [blame] | 41 | $(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 42 | @rm -rf doc/core |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 43 | mkdir -p doc/core |
Harald Welte | c7859ed | 2011-08-20 12:54:17 +0200 | [diff] [blame] | 44 | $(DOXYGEN) Doxyfile.core |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 45 | |
| 46 | $(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 47 | @rm -rf doc/gsm |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 48 | mkdir -p doc/gsm |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 49 | $(DOXYGEN) Doxyfile.gsm |
| 50 | |
| 51 | $(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty |
Holger Hans Peter Freyther | 8297c81 | 2011-11-18 23:14:24 +0100 | [diff] [blame] | 52 | @rm -rf doc/vty/{html,latex} |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 53 | $(DOXYGEN) Doxyfile.vty |
| 54 | |
| 55 | $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 56 | @rm -rf doc/codec |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 57 | mkdir -p doc/codec |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 58 | $(DOXYGEN) Doxyfile.codec |
| 59 | |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 60 | $(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 Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 65 | $(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 Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 70 | install-data-hook: |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 71 | cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 72 | |
| 73 | uninstall-hook: |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 74 | cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding,gb} |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 75 | |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 76 | DX_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 Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 77 | endif |
Harald Welte | 47945f0 | 2011-08-20 13:00:37 +0200 | [diff] [blame] | 78 | |
| 79 | MOSTLYCLEANFILES = $(DX_CLEAN) |