1SUBDIRS = po lib deps src doc test 2 3ACLOCAL_AMFLAGS = -I m4 --install 4RST2HTML = @RST2HTML@ 5 6EXTRA_DIST = config.rpath \ 7 script-helper \ 8 makerelease \ 9 mingw-config mingw-release mingw-build-memo \ 10 android-config \ 11 makerelease-osx.mk osx-package/DS_Store osx-package/etc/paths.d/aria2c osx-package/etc/manpaths.d/aria2 \ 12 Dockerfile.mingw \ 13 Dockerfile.raspberrypi \ 14 examples/libaria2ex.cc examples/libaria2wx.cc 15 16dist_doc_DATA = README README.rst README.html 17 18.PHONY: clang-format 19 20if HAVE_RST2HTML 21README.html: README.rst 22 $(RST2HTML) $< > $@ 23else # !HAVE_RST2HTML 24README.html: README.rst 25 @echo Warning: rst2html not installed. Placing only a dummy file for $@ 26 echo "<!doctype html>" > $@ 27 echo "<p>Readme has not been built!.<br>Instead see <a href='README.rst'>README.rst</a></p>" >> $@ 28endif # !HAVE_RST2HTML 29 30dist_noinst_DATA = LICENSE.OpenSSL 31 32# Format source files using clang-format. Don't format source files 33# under deps directory since we are not responsible for their coding 34# style. 35clang-format: 36 CLANGFORMAT=`git config --get clangformat.binary`; \ 37 test -z $${CLANGFORMAT} && CLANGFORMAT="clang-format"; \ 38 $${CLANGFORMAT} -i $(top_srcdir)/src/*.{c,cc,h} $(top_srcdir)/src/includes/aria2/*.h \ 39 $(top_srcdir)/examples/*.cc $(top_srcdir)/test/*.{cc,h} 40