SummaryRefsLogTreeCommitDiffStats
diff options
context:
space:
mode:
authorMathieu Lirzin <mthl@gnu.org>2018-03-25 22:36:18 +0200
committerMathieu Lirzin <mthl@gnu.org>2018-03-26 01:44:22 +0200
commit6c4f93371c7d0cd846c4b318e86f3761bf3e6e8c (patch)
tree99d458223d6da1ccd2afcd717d5ebaa79797738d
parent9ce38228e86f292aa612ae5c7737dfceaedceda9 (diff)
downloadmcron-6c4f93371c7d0cd846c4b318e86f3761bf3e6e8c.tar.gz
mcron-6c4f93371c7d0cd846c4b318e86f3761bf3e6e8c.tar.bz2
mcron-6c4f93371c7d0cd846c4b318e86f3761bf3e6e8c.zip
build: Add "maint.mk"
* maint.mk: New maintainer-only Makefile fragment. * Makefile.am: Include it. * configure.ac: Substitute "maint.mk" content when it exists.
-rw-r--r--Makefile.am6
-rw-r--r--configure.ac6
-rw-r--r--maint.mk20
3 files changed, 32 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index 9c7e5c1..d551e5d 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -257,3 +257,9 @@ guilec_verbose_0 = @echo " GUILEC " $@;
devnull_verbose = $(devnull_verbose_@AM_V@)
devnull_verbose_ = $(devnull_verbose_@AM_DEFAULT_V@)
devnull_verbose_0 = >/dev/null
+
+## ------------- ##
+## Maintenance. ##
+## ------------- ##
+
+@MAINT_MAKEFILE@
diff --git a/configure.ac b/configure.ac
index fbda198..0bb9262 100644
--- a/configure.ac
+++ b/configure.ac
@@ -139,6 +139,12 @@ AC_ARG_WITH(tmp-dir,
AC_MSG_RESULT($CONFIG_TMP_DIR)
AC_SUBST(CONFIG_TMP_DIR)
+# Include the Maintainer's Makefile fragment, if it's here.
+MAINT_MAKEFILE=/dev/null
+AS_IF([test -r "$srcdir/maint.mk"],
+ [MAINT_MAKEFILE="$srcdir/maint.mk"])
+AC_SUBST_FILE([MAINT_MAKEFILE])
+
AC_CONFIG_FILES([pre-inst-env:build-aux/pre-inst-env.in],
[chmod +x pre-inst-env])
AC_CONFIG_FILES([doc/config.texi
diff --git a/maint.mk b/maint.mk
new file mode 100644
index 0000000..791e366
--- /dev/null
+++ b/maint.mk
@@ -0,0 +1,20 @@
+## Maintainer-only Makefile fragment
+# Copyright © 2018 Mathieu Lirzin <mthl@gnu.org>
+#
+# This file is part of GNU Mcron.
+#
+# GNU Mcron is free software: you can redistribute it and/or modify
+# it under the terms of the GNU General Public License as published by
+# the Free Software Foundation, either version 3 of the License, or
+# (at your option) any later version.
+#
+# GNU Mcron is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with GNU Mcron. If not, see <http://www.gnu.org/licenses/>.
+
+# Rebuild Makefile.in if this file is modifed.
+Makefile.in: maint.mk