Merge branch 'master' of gnunet.org:gnunet
[oweals/gnunet.git] / Makefile.am
1 # This Makefile.am is in the public domain
2 AM_CPPFLAGS = -I$(top_srcdir)/src/include
3
4 # only documentation (ALL of the documentation)
5 if DOCUMENTATION_ONLY
6   SUBDIRS = doc
7 else
8   SUBDIRS = m4 src po pkgconfig
9 endif
10
11 # documentation on / off switch (affects all of the documentation)
12 if DOCUMENTATION
13   SUBDIRS += doc
14 endif
15 if HAVE_EXPERIMENTAL
16   SUBDIRS += lint
17 endif
18
19 # only manpages, needs "doc" subdir
20 if INCLUDE_MANPAGES
21   SUBDIRS += doc
22 endif
23
24 if !TALER_ONLY
25   SUBDIRS += contrib
26 endif
27
28 EXTRA_DIST = \
29  ABOUT-NLS \
30  config.rpath \
31  acinclude.m4 \
32  README.1st
33
34 gnunetincludedir = $(includedir)/gnunet
35 gnunetinclude_HEADERS = gnunet_config.h
36
37 docdir = $(datadir)/doc/gnunet/
38 doc_DATA = COPYING README
39
40 ACLOCAL_AMFLAGS = -I m4
41
42 if HAVE_UNCRUSTIFY_BINARY
43 pretty:
44         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
45 endif