blob: b8de3cadd00cd6827bc62ef240f3a0486f41e273 [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
10BUILT_SOURCES = $(top_srcdir)/.version
11$(top_srcdir)/.version:
12 echo $(VERSION) > $@-t && mv $@-t $@
13dist-hook:
14 echo $(VERSION) > $(distdir)/.tarball-version
Holger Hans Peter Freytherec4f1602011-07-17 12:13:31 +020015
Harald Welte220fa742017-03-16 15:28:17 +010016EXTRA_DIST = git-version-gen .version README.md
Harald Welte21e73c22011-08-17 19:33:06 +020017
18if HAVE_DOXYGEN
19
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070020html_DATA = $(top_builddir)/doc/html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020021
Neels Hofmeyr249fb712017-06-20 02:52:38 +020022doc: $(html_DATA)
23
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070024$(html_DATA): $(top_builddir)/doc/core/html/index.html \
Harald Welte21e73c22011-08-17 19:33:06 +020025 $(top_builddir)/doc/gsm/html/index.html \
26 $(top_builddir)/doc/vty/html/index.html \
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070027 $(top_builddir)/doc/codec/html/index.html \
Neels Hofmeyr249fb712017-06-20 02:52:38 +020028 $(top_builddir)/doc/coding/html/index.html \
29 $(top_builddir)/doc/gb/html/index.html
Harald Welte7992af02011-08-17 19:37:26 +020030 cd $(top_builddir)/doc && tar cf html.tar */html
Harald Welte21e73c22011-08-17 19:33:06 +020031
Harald Weltec7859ed2011-08-20 12:54:17 +020032$(top_builddir)/doc/core/html/index.html: $(SOURCES) Doxyfile.core
Harald Welte09b4c222011-08-20 12:17:02 +020033 @rm -rf doc/core
Harald Welte02624d22011-08-17 19:41:49 +020034 mkdir -p doc/core
Harald Weltec7859ed2011-08-20 12:54:17 +020035 $(DOXYGEN) Doxyfile.core
Harald Welte21e73c22011-08-17 19:33:06 +020036
37$(top_builddir)/doc/gsm/html/index.html: $(SOURCES) Doxyfile.gsm
Harald Welte09b4c222011-08-20 12:17:02 +020038 @rm -rf doc/gsm
Harald Welte02624d22011-08-17 19:41:49 +020039 mkdir -p doc/gsm
Harald Welte21e73c22011-08-17 19:33:06 +020040 $(DOXYGEN) Doxyfile.gsm
41
42$(top_builddir)/doc/vty/html/index.html: $(SOURCES) Doxyfile.vty
Holger Hans Peter Freyther8297c812011-11-18 23:14:24 +010043 @rm -rf doc/vty/{html,latex}
Harald Welte21e73c22011-08-17 19:33:06 +020044 $(DOXYGEN) Doxyfile.vty
45
46$(top_builddir)/doc/codec/html/index.html: $(SOURCES) Doxyfile.codec
Harald Welte09b4c222011-08-20 12:17:02 +020047 @rm -rf doc/codec
Harald Welte02624d22011-08-17 19:41:49 +020048 mkdir -p doc/codec
Harald Welte21e73c22011-08-17 19:33:06 +020049 $(DOXYGEN) Doxyfile.codec
50
Vadim Yanitskiy3262f822016-09-23 01:48:59 +070051$(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 Hofmeyr249fb712017-06-20 02:52:38 +020056$(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 Welte21e73c22011-08-17 19:33:06 +020061install-data-hook:
Diego Elio Pettenò200710e2012-06-29 13:01:26 -070062 cd $(DESTDIR)$(htmldir) && tar xf html.tar && rm -f html.tar
Harald Welte21e73c22011-08-17 19:33:06 +020063
64uninstall-hook:
Neels Hofmeyr249fb712017-06-20 02:52:38 +020065 cd $(DESTDIR)$(htmldir) && rm -rf {core,gsm,vty,codec,coding,gb}
Harald Welte21e73c22011-08-17 19:33:06 +020066
Neels Hofmeyr249fb712017-06-20 02:52:38 +020067DX_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 +020068endif
Harald Welte47945f02011-08-20 13:00:37 +020069
70MOSTLYCLEANFILES = $(DX_CLEAN)