Include stddef.h if available.
[oweals/tinc.git] / Makefile.am
1 ## Process this file with automake to get Makefile.in
2
3 AUTOMAKE_OPTIONS = gnu
4
5 SUBDIRS =  src doc test systemd bash_completion.d
6
7 ACLOCAL_AMFLAGS = -I m4
8
9 EXTRA_DIST = COPYING.README README.android
10
11 @CODE_COVERAGE_RULES@
12
13 # If git describe works, force autoconf to run in order to make sure we have the
14 # current version number from git in the resulting configure script.
15 configure-version:
16         -cd $(srcdir) && git describe && autoconf --force
17
18 # Triggering the README target means we are building a distribution (make dist).
19 README: configure-version
20
21 ChangeLog:
22         (cd $(srcdir) && git log) > ChangeLog
23
24 deb:
25         dpkg-buildpackage -rfakeroot
26
27 rpm: dist
28         cp $(distdir).tar.gz /usr/src/redhat/SOURCES/
29         cp redhat/tinc.spec /usr/src/redhat/SOURCES/
30         cd /usr/src/redhat/SOURCES/ && rpm -bb tinc.spec
31
32 release:
33         rm -f ChangeLog
34         $(MAKE) ChangeLog
35         echo "Please edit the NEWS file now..."
36         /usr/bin/editor $(srcdir)/NEWS
37         $(MAKE) dist
38
39 astyle:
40         astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch]