summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLuca Barbato <lu_zero@gentoo.org>2013-07-21 18:09:45 +0200
committerLuca Barbato <lu_zero@gentoo.org>2013-07-21 18:09:45 +0200
commitc5950f3e810243c7ba1dac984a7746c0cc483b7d (patch)
tree88e744b4026a4f4c57a367612c850bb9e810d5b0
parent81d5442e9734bffb3c156485357ba87448954d19 (diff)
dolt: improve automake support
Ease having a distcheck compliant build system.
-rw-r--r--README2
-rw-r--r--dolt.m43
2 files changed, 4 insertions, 1 deletions
diff --git a/README b/README
index 59ff4f0..3be18b8 100644
--- a/README
+++ b/README
@@ -11,6 +11,6 @@ steps:
- add DOLT after the call to LT_INIT, AC_PATH_LIBTOOL, or AM_PATH_LIBTOOL in
your configure.ac or configure.in script
- append dolt.m4 to your project's acinclude.m4
-
+- Add DISTCLEANFILES = @DOLT_CLEANFILES@ to your Makefile.am
For any platform Dolt does not support, it will transparently fall back to
libtool.
diff --git a/dolt.m4 b/dolt.m4
index 18e3141..493ac85 100644
--- a/dolt.m4
+++ b/dolt.m4
@@ -163,6 +163,9 @@ __DOLTLIBTOOL__EOF__
dnl Done writing out doltlibtool; substitute it for libtool.
chmod +x doltlibtool
LIBTOOL='$(top_builddir)/doltlibtool'
+
+DOLT_CLEANFILES="doltlibtool doltcompile"
+AC_SUBST(DOLT_CLEANFILES)
])
AC_SUBST(LTCOMPILE)
AC_SUBST(LTCXXCOMPILE)