chiark / gitweb /
Make sure the sample configuration gets distributed. (Automake changed
[become] / conf / Makefile.am
index e3e69e67429b49635d1b61428ea8101a6c92c3fa..7a2086493dba1f78662ca01f9fc56f52eb59f751 100644 (file)
@@ -1,11 +1,11 @@
 ## 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.4 1999/05/04 16:18:39 mdw Exp $
 ##
 ## Makefile for `become'
 ##
-## (c) 1997 EBI
+## (c) 1998 EBI
 ##
 
 ##----- Licensing notice ----------------------------------------------------
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
-## Revision 1.1  1997/08/20 16:27:02  mdw
+## Revision 1.4  1999/05/04 16:18:39  mdw
+## Make sure the sample configuration gets distributed.  (Automake changed
+## behaviour here.)
+##
+## Revision 1.3  1998/01/12  16:45:34  mdw
+## Fix copyright date.
+##
+## 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.
 ##
 
 
 etcdir = @etcdir@
 
-etc_DATA = become.conf
+noinst_DATA = become.conf
+EXTRA_DIST = 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 ---------------------------------------------------