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 | |
| 15 | osmo-release.mk: git-version-gen |
| 16 | |
Harald Welte | 4cd3d8a | 2010-03-23 00:30:19 +0800 | [diff] [blame] | 17 | BUILT_SOURCES = $(top_srcdir)/.version |
| 18 | $(top_srcdir)/.version: |
| 19 | echo $(VERSION) > $@-t && mv $@-t $@ |
| 20 | dist-hook: |
| 21 | echo $(VERSION) > $(distdir)/.tarball-version |
Holger Hans Peter Freyther | ec4f160 | 2011-07-17 12:13:31 +0200 | [diff] [blame] | 22 | |
Max | ff932bb | 2017-07-04 18:19:38 +0200 | [diff] [blame] | 23 | EXTRA_DIST = git-version-gen .version README.md osmo-release.mk |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 24 | |
| 25 | if HAVE_DOXYGEN |
| 26 | |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 27 | html_DATA = $(top_builddir)/doc/html.tar |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 28 | |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 29 | doc: $(html_DATA) |
| 30 | |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 31 | $(html_DATA): $(top_builddir)/doc/core/html/index.html \ |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 32 | $(top_builddir)/doc/gsm/html/index.html \ |
| 33 | $(top_builddir)/doc/vty/html/index.html \ |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 34 | $(top_builddir)/doc/codec/html/index.html \ |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 35 | $(top_builddir)/doc/coding/html/index.html \ |
| 36 | $(top_builddir)/doc/gb/html/index.html |
Harald Welte | 7992af0 | 2011-08-17 19:37:26 +0200 | [diff] [blame] | 37 | cd $(top_builddir)/doc && tar cf html.tar */html |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 38 | |
Harald Welte | c7859ed | 2011-08-20 12:54:17 +0200 | [diff] [blame] | 39 | $(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 40 | @rm -rf doc/core |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 41 | mkdir -p doc/core |
Harald Welte | c7859ed | 2011-08-20 12:54:17 +0200 | [diff] [blame] | 42 | $(DOXYGEN) Doxyfile.core |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 43 | |
| 44 | $(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 45 | @rm -rf doc/gsm |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 46 | mkdir -p doc/gsm |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 47 | $(DOXYGEN) Doxyfile.gsm |
| 48 | |
| 49 | $(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty |
Holger Hans Peter Freyther | 8297c81 | 2011-11-18 23:14:24 +0100 | [diff] [blame] | 50 | @rm -rf doc/vty/{html,latex} |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 51 | $(DOXYGEN) Doxyfile.vty |
| 52 | |
| 53 | $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 54 | @rm -rf doc/codec |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 55 | mkdir -p doc/codec |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 56 | $(DOXYGEN) Doxyfile.codec |
| 57 | |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 58 | $(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 Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 63 | $(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 Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 68 | install-data-hook: |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 69 | cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 70 | |
| 71 | uninstall-hook: |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 72 | cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding,gb} |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 73 | |
Neels Hofmeyr | 249fb71 | 2017-06-20 02:52:38 +0200 | [diff] [blame] | 74 | 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] | 75 | endif |
Harald Welte | 47945f0 | 2011-08-20 13:00:37 +0200 | [diff] [blame] | 76 | |
| 77 | MOSTLYCLEANFILES = $(DX_CLEAN) |