Makefile.am 1.3 KB

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