summaryrefslogtreecommitdiff
blob: 9577d4cb6582c5c6bd4ca8520000637fa08e9c2f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
--- a/Makefile.am
+++ b/Makefile.am
@@ -23,9 +23,9 @@
 GFXDIR="$(datadir)/sdlroids/bmp/"
 
 install-data-local:
-	@/bin/sh $(srcdir)/mkinstalldirs $(SOUNDSDIR) $(GFXDIR)
-	$(INSTALL_DATA) $(srcdir)/sounds/*.wav $(SOUNDSDIR)
-	$(INSTALL_DATA)  $(srcdir)/bmp/*.bmp $(GFXDIR)
+	@/bin/sh $(srcdir)/mkinstalldirs $(DESTDIR)$(SOUNDSDIR) $(DESTDIR)$(GFXDIR)
+	$(INSTALL_DATA) $(srcdir)/sounds/*.wav $(DESTDIR)$(SOUNDSDIR)
+	$(INSTALL_DATA) $(srcdir)/bmp/*.bmp $(DESTDIR)$(GFXDIR)
 
 # Data directories
 INCLUDES=-Wall 	-Wcast-align -DDATADIR=\"$(datadir)/sdlroids/\"