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