tinc/Makefile.am

41 lines
971 B
Makefile
Raw Normal View History

2019-08-26 11:44:36 +00:00
## Process this file with automake to get Makefile.in
AUTOMAKE_OPTIONS = gnu
2019-08-26 11:44:53 +00:00
SUBDIRS = src doc test systemd
2019-08-26 11:44:36 +00:00
2019-08-26 11:44:52 +00:00
ACLOCAL_AMFLAGS = -I m4
2019-08-26 11:44:36 +00:00
2019-08-26 11:44:51 +00:00
EXTRA_DIST = COPYING.README README.android
2019-08-26 11:44:36 +00:00
2019-08-26 11:44:53 +00:00
@CODE_COVERAGE_RULES@
2019-08-26 11:44:52 +00:00
# If git describe works, force autoconf to run in order to make sure we have the
# current version number from git in the resulting configure script.
configure-version:
-cd $(srcdir) && git describe && autoconf --force
# Triggering the README target means we are building a distribution (make dist).
README: configure-version
2019-08-26 11:44:36 +00:00
ChangeLog:
2019-08-26 11:44:52 +00:00
(cd $(srcdir) && git log) > ChangeLog
2019-08-26 11:44:48 +00:00
2019-08-26 11:44:49 +00:00
deb:
dpkg-buildpackage -rfakeroot
rpm: dist
cp $(distdir).tar.gz /usr/src/redhat/SOURCES/
cp redhat/tinc.spec /usr/src/redhat/SOURCES/
cd /usr/src/redhat/SOURCES/ && rpm -bb tinc.spec
release:
rm -f ChangeLog
$(MAKE) ChangeLog
echo "Please edit the NEWS file now..."
2019-08-26 11:44:52 +00:00
/usr/bin/editor $(srcdir)/NEWS
2019-08-26 11:44:49 +00:00
$(MAKE) dist
2019-08-26 11:44:53 +00:00
astyle:
astyle --options=.astylerc -nQ src/*.[ch] src/*/*.[ch]