--- Makefile.in.orig	2005-04-30 15:19:40 UTC
+++ Makefile.in
@@ -379,8 +379,8 @@ mostlyclean distclean maintainer-clean
 
 
 install-data-local:
-	$(mkinstalldirs) $(SMACKS_DIR) $(DATADIR)
-	cp -rp $(srcdir)/smacks/* $(SMACKS_DIR)
+	$(mkinstalldirs) $(DESTDIR)$(SMACKS_DIR) $(DESTDIR)$(DATADIR)
+	cp -rp $(srcdir)/smacks/* $(DESTDIR)$(SMACKS_DIR)
 
 dist-hook:
 	mkdir -p $(distdir)/smacks
