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