From 6c4f93371c7d0cd846c4b318e86f3761bf3e6e8c Mon Sep 17 00:00:00 2001 From: Mathieu Lirzin Date: Sun, 25 Mar 2018 22:36:18 +0200 Subject: build: Add "maint.mk" * maint.mk: New maintainer-only Makefile fragment. * Makefile.am: Include it. * configure.ac: Substitute "maint.mk" content when it exists. --- Makefile.am | 6 ++++++ configure.ac | 6 ++++++ maint.mk | 20 ++++++++++++++++++++ 3 files changed, 32 insertions(+) create mode 100644 maint.mk 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 +# +# 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 . + +# Rebuild Makefile.in if this file is modifed. +Makefile.in: maint.mk -- cgit v1.2.3