Debianization.
[become] / conf / Makefile.am
index 7a20864..0bf1c28 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with `automake' to generate `Makefile.in'
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.4 1999/05/04 16:18:39 mdw Exp $
+## $Id: Makefile.am,v 1.5 2003/11/29 23:39:16 mdw Exp $
 ##
 ## Makefile for `become'
 ##
@@ -29,6 +29,9 @@
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## Revision 1.5  2003/11/29 23:39:16  mdw
+## Debianization.
+##
 ## Revision 1.4  1999/05/04 16:18:39  mdw
 ## Make sure the sample configuration gets distributed.  (Automake changed
 ## behaviour here.)
@@ -51,18 +54,19 @@ noinst_DATA = become.conf
 EXTRA_DIST = become.conf
 
 install-data-local: become.conf
-       $(mkinstalldirs) $(etcdir)
-       if test -r $(etcdir)/become.conf; then \
+       $(mkinstalldirs) $(DESTDIR)$(etcdir)
+       if test -r $(DESTDIR)$(etcdir)/become.conf; then \
          echo ">>>>>"; \
          echo ">>>>> become.conf NOT installed"; \
          echo ">>>>>"; \
        else \
-         $(INSTALL_DATA) $(srcdir)/become.conf $(etcdir)/become.conf; \
+         $(INSTALL_DATA) $(srcdir)/become.conf \
+               $(DESTDIR)$(etcdir)/become.conf; \
        fi
 
 uninstall-local:
-       if cmp -s $(srcdir)/become.conf $(etcdir)/become.conf; then \
-         rm -f $(etcdir)/become.conf; \
+       if cmp -s $(srcdir)/become.conf $(DESTDIR)$(etcdir)/become.conf; then \
+         rm -f $(DESTDIR)$(etcdir)/become.conf; \
        else \
          echo ">>>>>"; \
          echo ">>>>> $(etcdir)/become.conf NOT uninstalled."; \