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 |
Neels Hofmeyr | d3b5873 | 2017-03-15 01:52:58 +0100 | [diff] [blame] | 4 | SUBDIRS = include src src/vty src/codec src/gsm src/coding src/gb src/ctrl src/sim 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 | |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 22 | $(html_DATA): $(top_builddir)/doc/core/html/index.html \ |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 23 | $(top_builddir)/doc/gsm/html/index.html \ |
| 24 | $(top_builddir)/doc/vty/html/index.html \ |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 25 | $(top_builddir)/doc/codec/html/index.html \ |
| 26 | $(top_builddir)/doc/coding/html/index.html |
Harald Welte | 7992af0 | 2011-08-17 19:37:26 +0200 | [diff] [blame] | 27 | cd $(top_builddir)/doc && tar cf html.tar */html |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 28 | |
Harald Welte | c7859ed | 2011-08-20 12:54:17 +0200 | [diff] [blame] | 29 | $(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 30 | @rm -rf doc/core |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 31 | mkdir -p doc/core |
Harald Welte | c7859ed | 2011-08-20 12:54:17 +0200 | [diff] [blame] | 32 | $(DOXYGEN) Doxyfile.core |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 33 | |
| 34 | $(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 35 | @rm -rf doc/gsm |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 36 | mkdir -p doc/gsm |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 37 | $(DOXYGEN) Doxyfile.gsm |
| 38 | |
| 39 | $(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty |
Holger Hans Peter Freyther | 8297c81 | 2011-11-18 23:14:24 +0100 | [diff] [blame] | 40 | @rm -rf doc/vty/{html,latex} |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 41 | $(DOXYGEN) Doxyfile.vty |
| 42 | |
| 43 | $(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec |
Harald Welte | 09b4c22 | 2011-08-20 12:17:02 +0200 | [diff] [blame] | 44 | @rm -rf doc/codec |
Harald Welte | 02624d2 | 2011-08-17 19:41:49 +0200 | [diff] [blame] | 45 | mkdir -p doc/codec |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 46 | $(DOXYGEN) Doxyfile.codec |
| 47 | |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 48 | $(top_builddir)/doc/coding/html/index.html: Doxyfile.coding |
| 49 | @rm -rf doc/coding |
| 50 | mkdir -p doc/coding |
| 51 | $(DOXYGEN) Doxyfile.coding |
| 52 | |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 53 | install-data-hook: |
Diego Elio Pettenò | 200710e | 2012-06-29 13:01:26 -0700 | [diff] [blame] | 54 | cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 55 | |
| 56 | uninstall-hook: |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 57 | cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding} |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 58 | |
Vadim Yanitskiy | 3262f82 | 2016-09-23 01:48:59 +0700 | [diff] [blame] | 59 | DX_CLEAN = doc/{core,gsm,vty,codec,coding}/html/search/* doc/{core,gsm,vty,codec,coding}/{html,latex}/* doc/html.tar doc/{core,gsm,vty,codec,coding}/doxygen_sqlite3.db doc/*.tag |
Harald Welte | 21e73c2 | 2011-08-17 19:33:06 +0200 | [diff] [blame] | 60 | endif |
Harald Welte | 47945f0 | 2011-08-20 13:00:37 +0200 | [diff] [blame] | 61 | |
| 62 | MOSTLYCLEANFILES = $(DX_CLEAN) |