chiark / gitweb /
build system: Support DESTDIR
[adns.git] / client / Makefile.in
index 6264482505769ddcbfab38922cfbc38b8248128b..144eafd0f0176ea0bc42bac87767b8daf784da1a 100644 (file)
@@ -58,9 +58,9 @@ ALL_OBJS=     $(ADH_OBJS) $(TARG_OBJS)
 all:           $(TARGETS)
 
 install:       $(TARG_INSTALL)
-               mkdir -p $(bindir)
+               $(INSTALL_DIR) $(DESTDIR)$(bindir)
                set -xe; for f in $(TARG_INSTALL); \
-                       do $(INSTALL_PROGRAM) $$f $(bindir)/$$f; done
+                       do $(INSTALL_PROGRAM) $$f $(DESTDIR)$(bindir)/$$f; done
 
 uninstall:
                for f in $(TARGETS); do rm -f $(bindir)/$$f; done