Makefile.am 1.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849
  1. # This Makefile.am is in the public domain
  2. AM_CPPFLAGS = -I$(top_srcdir)/src/include
  3. # only documentation (ALL of the documentation)
  4. if DOCUMENTATION_ONLY
  5. SUBDIRS = doc
  6. else
  7. SUBDIRS = m4 src po pkgconfig
  8. endif
  9. # documentation on / off switch (affects all of the documentation)
  10. if DOCUMENTATION
  11. SUBDIRS += doc
  12. endif
  13. if HAVE_EXPERIMENTAL
  14. SUBDIRS += lint
  15. endif
  16. # only manpages, needs "doc" subdir
  17. if INCLUDE_MANPAGES
  18. SUBDIRS += doc
  19. endif
  20. if !TALER_ONLY
  21. SUBDIRS += contrib
  22. endif
  23. EXTRA_DIST = \
  24. ABOUT-NLS \
  25. config.rpath \
  26. acinclude.m4 \
  27. README.1st
  28. gnunetincludedir = $(includedir)/gnunet
  29. gnunetinclude_HEADERS = gnunet_config.h
  30. docdir = $(datadir)/doc/gnunet/
  31. doc_DATA = COPYING README
  32. ACLOCAL_AMFLAGS = -I m4
  33. # TODO: better nesting.
  34. if HAVE_UNCRUSTIFY_BINARY
  35. pretty:
  36. find $(top_srcdir) -type f -name '*.c' -or -name '*.h' -print0 | xargs -0 uncrustify -c $(top_srcdir)/contrib/uncrustify.cfg --replace --no-backup 2>&1 || true
  37. if HAVE_YAPF_BINARY
  38. find $(top_srcdir) -type f -name '*.py' -or -name '*.py.in' -print0 | xargs -0 $(YAPF_BINARY) -i 2>&1 || true
  39. endif
  40. endif