--- earthview/Makefile	2005-07-14 23:16:30.000000000 +0200
+++ earthview/Makefile	2006-01-07 22:56:59.000000000 +0100
@@ -11,7 +11,7 @@
 	gcc -Wall -DDATADIR=\"$(DATADIR)\" earthview.c -o earthview -L/usr/X11R6/lib -lX11 -lm -lz -lbz2
 
 install:
-	install -c -s earthview $(BINDIR)
+	install -c -s earthview $(DESTDIR)$(BINDIR)
 	mkdir -p $(DATADIR)
 	mkdir -p $(DATADIR)/topography
 	cp -f data/topography.cps $(DATADIR)/topography
