Fix to makefile install rules.
[become] / src / Makefile.am
index 57a4751..c04dd1a 100644 (file)
@@ -1,7 +1,7 @@
 ## Process this file with `automake' to generate `Makefile.in'
 ## -*-makefile-*-
 ##
-## $Id: Makefile.am,v 1.14 2003/10/12 00:14:55 mdw Exp $
+## $Id: Makefile.am,v 1.15 2003/10/12 00:15:34 mdw Exp $
 ##
 ## Makefile for `become'
 ##
@@ -29,6 +29,9 @@
 ##----- Revision history ----------------------------------------------------
 ##
 ## $Log: Makefile.am,v $
+## Revision 1.15  2003/10/12 00:15:34  mdw
+## Fix to makefile install rules.
+##
 ## Revision 1.14  2003/10/12 00:14:55  mdw
 ## Major overhaul.  Now uses DSA signatures rather than the bogus symmetric
 ## encrypt-and-hope thing.  Integrated with mLib and Catacomb.
@@ -124,7 +127,7 @@ bcquery_DEPENDENCIES = libbecome.a
 ##----- Become must be setuid root ------------------------------------------
 
 install-exec-hook:
-       become_prog=${bindir}/`echo become|sed '${transform}'`; \
+       become_prog=$(DESTDIR)/${bindir}/`echo become|sed '${transform}'`; \
        { chown root $${become_prog} && \
          chmod 4755 $${become_prog}; } || \
        { echo ">>>>>"; \