From 3f6b4077e532251e5b8f73208e8fa5ebdc68ba11 Mon Sep 17 00:00:00 2001 From: Guus Sliepen Date: Mon, 14 Feb 2011 16:30:07 +0100 Subject: [PATCH] Do not use DESTDIR in PREFIX, but only in the install target. --- makefile | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/makefile b/makefile index 8985478..a98e6c5 100755 --- a/makefile +++ b/makefile @@ -8,7 +8,7 @@ VERSION = 1.18 RELEASE = 1 USEPAK = 0 -PREFIX=$(DESTDIR)/usr +PREFIX = /usr BINDIR = $(PREFIX)/games/ DATADIR = $(PREFIX)/share/games/blobwars/ DOCDIR = $(PREFIX)/share/doc/$(PROG)/ @@ -104,30 +104,30 @@ buildpak: $(PAKNAME) # install install: $(ALL) - mkdir -p $(BINDIR) - mkdir -p $(DATADIR) - mkdir -p $(DOCDIR) - mkdir -p $(ICONDIR)16x16/apps - mkdir -p $(ICONDIR)32x32/apps - mkdir -p $(ICONDIR)64x64/apps - mkdir -p $(DESKTOPDIR) - - install -m 755 $(PROG) $(BINDIR)$(PROG) + mkdir -p $(DESTDIR)$(BINDIR) + mkdir -p $(DESTDIR)$(DATADIR) + mkdir -p $(DESTDIR)$(DOCDIR) + mkdir -p $(DESTDIR)$(ICONDIR)16x16/apps + mkdir -p $(DESTDIR)$(ICONDIR)32x32/apps + mkdir -p $(DESTDIR)$(ICONDIR)64x64/apps + mkdir -p $(DESTDIR)$(DESKTOPDIR) + + install -m 755 $(PROG) $(DESTDIR)$(BINDIR)$(PROG) ifeq ($(USEPAK), 1) - install -m 644 $(PAKNAME) $(DATADIR)$(PAKNAME) + install -m 644 $(PAKNAME) $(DESTDIR)$(DATADIR)$(PAKNAME) else - cp -r $(DATA) $(DATADIR) + cp -r $(DATA) $(DESTDIR)$(DATADIR) endif - cp $(ICONS)$(PROG).png $(ICONDIR)32x32/apps/ - cp $(ICONS)$(PROG)-mini.png $(ICONDIR)16x16/apps/$(PROG).png - cp $(ICONS)$(PROG)-large.png $(ICONDIR)64x64/apps/$(PROG).png - cp $(ICONS)$(PROG).desktop $(DESKTOPDIR) + cp $(ICONS)$(PROG).png $(DESTDIR)$(ICONDIR)32x32/apps/ + cp $(ICONS)$(PROG)-mini.png $(DESTDIR)$(ICONDIR)16x16/apps/$(PROG).png + cp $(ICONS)$(PROG)-large.png $(DESTDIR)$(ICONDIR)64x64/apps/$(PROG).png + cp $(ICONS)$(PROG).desktop $(DESTDIR)$(DESKTOPDIR) @for f in $(LOCALE_MO); do \ lang=`echo $$f | sed -e 's/^locale\///;s/\.mo$$//'`; \ - mkdir -p $(LOCALEDIR)$$lang/LC_MESSAGES; \ - echo "cp $$f $(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo"; \ - cp $$f $(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo; \ + mkdir -p $(DESTDIR)$(LOCALEDIR)$$lang/LC_MESSAGES; \ + echo "cp $$f $(DESTDIR)$(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo"; \ + cp $$f $(DESTDIR)$(LOCALEDIR)$$lang/LC_MESSAGES/$(PROG).mo; \ done uninstall: -- 2.39.5