$NetBSD: patch-ad,v 1.1 2008/02/12 13:56:48 obache Exp $

--- templates/default/all/Makefile.in.orig	2004-07-20 16:49:24.000000000 +0000
+++ templates/default/all/Makefile.in
@@ -369,9 +369,9 @@ all: zphoto.css .photo.html
 	| sh
 
 install-data-local:
-	mkdir -p $(templatesdir)
-	cp -p *.html.* $(templatesdir)
-	cp -p *.js.* $(templatesdir)
+	mkdir -p $(DESTDIR)$(templatesdir)
+	cp -p *.html.* $(DESTDIR)$(templatesdir)
+	cp -p *.js.* $(DESTDIR)$(templatesdir)
 
 clean:
 	rm -f zphoto.css .photo.html *.html.* *.js.* *.txt
