diff -up vor-0.5.3/Makefile.destdir vor-0.5.3/Makefile
--- vor-0.5.3/Makefile.destdir	2007-05-09 19:37:16.000000000 -0400
+++ vor-0.5.3/Makefile	2009-05-26 21:23:09.000000000 -0400
@@ -18,6 +18,8 @@
 DATA_PREFIX := /usr/share/vor
 PROGRAM_PREFIX := /usr/games/bin
 
+DESTDIR =
+
 CFLAGS := -Wall -O3
 LDFLAGS := 
 
@@ -104,30 +106,32 @@ data-clean:
 	rm -f $(graphics) font_guts font_guts.pov
 
 mkinstalldirs:
-	if [ ! -d $(DATA_PREFIX) ]; then mkdir $(DATA_PREFIX); fi
+	if [ ! -d $(DESTDIR)$(DATA_PREFIX) ]; then mkdir -p $(DESTDIR)$(DATA_PREFIX); fi
+	if [ ! -d $(DESTDIR)$(PROGRAM_PREFIX) ]; then mkdir -p $(DESTDIR)$(PROGRAM_PREFIX); fi
 
 rminstalldirs:
-	if [ -d $(DATA_PREFIX) ]; then rmdir $(DATA_PREFIX); fi
+	if [ -d $(DESTDIR)$(DATA_PREFIX) ]; then rmdir $(DESTDIR)$(DATA_PREFIX); fi
+	if [ -d $(DESTDIR)$(PROGRAM_PREFIX) ]; then rmdir $(DESTDIR)$(PROGRAM_PREFIX); fi
 
 install: all mkinstalldirs install-program install-data
 
 install-program: program
-	$(INSTALL_PROGRAM) ./vor $(PROGRAM_PREFIX)
+	$(INSTALL_PROGRAM) ./vor $(DESTDIR)$(PROGRAM_PREFIX)
 
 install-data: data
-	$(INSTALL_DATA) ./data/*.png $(DATA_PREFIX)/
-	$(INSTALL_DATA) ./data/*.wav $(DATA_PREFIX)/
-	$(INSTALL_DATA) ./data/*.mod $(DATA_PREFIX)/
+	$(INSTALL_DATA) ./data/*.png $(DESTDIR)$(DATA_PREFIX)/
+	$(INSTALL_DATA) ./data/*.wav $(DESTDIR)$(DATA_PREFIX)/
+	$(INSTALL_DATA) ./data/*.mod $(DESTDIR)$(DATA_PREFIX)/
 	@echo
-	@echo "$(DATA_PREFIX)/icon.png (48x48) or ship.png (32x32) make good icons."
+	@echo "$(DESTDIR)$(DATA_PREFIX)/icon.png (48x48) or ship.png (32x32) make good icons."
 	@echo
 
 uninstall: uninstall-program uninstall-data rminstalldirs
 
 uninstall-program:
-	rm -f $(PROGRAM_PREFIX)/vor
+	rm -f $(DESTDIR)$(PROGRAM_PREFIX)/vor
 
 uninstall-data:
-	rm -f $(DATA_PREFIX)/*.png
-	rm -f $(DATA_PREFIX)/*.wav
-	rm -f $(DATA_PREFIX)/*.mod
+	rm -f $(DESTDIR)$(DATA_PREFIX)/*.png
+	rm -f $(DESTDIR)$(DATA_PREFIX)/*.wav
+	rm -f $(DESTDIR)$(DATA_PREFIX)/*.mod
