From f213106293ac31d41746314fa45a335755978764 Mon Sep 17 00:00:00 2001 From: mdw Date: Thu, 18 Sep 1997 11:15:14 +0000 Subject: [PATCH] Install a skeleton configuration file carefully. --- conf/Makefile.am | 28 +++++++++++++++++++++++++--- 1 file changed, 25 insertions(+), 3 deletions(-) diff --git a/conf/Makefile.am b/conf/Makefile.am index e3e69e6..3fc3faa 100644 --- a/conf/Makefile.am +++ b/conf/Makefile.am @@ -1,7 +1,7 @@ ## Process this file with `automake' to generate `Makefile.in' ## -*-makefile-*- ## -## $Id: Makefile.am,v 1.1 1997/08/20 16:27:02 mdw Exp $ +## $Id: Makefile.am,v 1.2 1997/09/18 11:15:14 mdw Exp $ ## ## Makefile for `become' ## @@ -29,7 +29,10 @@ ##----- Revision history ---------------------------------------------------- ## ## $Log: Makefile.am,v $ -## Revision 1.1 1997/08/20 16:27:02 mdw +## Revision 1.2 1997/09/18 11:15:14 mdw +## Install a skeleton configuration file carefully. +## +## Revision 1.1 1997/08/20 16:27:02 mdw ## New file. ## @@ -37,6 +40,25 @@ etcdir = @etcdir@ -etc_DATA = become.conf +noinst_DATA = become.conf + +install-data-local: become.conf + $(mkinstalldirs) $(etcdir) + if test -r $(etcdir)/become.conf; then \ + echo ">>>>>"; \ + echo ">>>>> become.conf NOT installed"; \ + echo ">>>>>"; \ + else \ + $(INSTALL_DATA) $(srcdir)/become.conf $(etcdir)/become.conf; \ + fi + +uninstall-local: + if cmp -s $(srcdir)/become.conf $(etcdir)/become.conf; then \ + rm -f $(etcdir)/become.conf; \ + else \ + echo ">>>>>"; \ + echo ">>>>> $(etcdir)/become.conf NOT uninstalled."; \ + echo ">>>>>"; \ + fi ##----- That's all, folks --------------------------------------------------- -- 2.11.0