From 1c83de68f5a38d25152b40499156f33f557539cb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 2 May 2015 10:15:40 +0200 Subject: Use $DESTDIR instead of $prefix --- Makefile | 38 +++++++++++++++++++------------------- 1 file changed, 19 insertions(+), 19 deletions(-) diff --git a/Makefile b/Makefile index d5e41fa..f188949 100644 --- a/Makefile +++ b/Makefile @@ -12,14 +12,14 @@ unitdir=/usr/lib/systemd/system all: install: - @mkdir -p $(prefix)$(sharedir)/mga/backgrounds/ + @mkdir -p $(DESTDIR)$(sharedir)/mga/backgrounds/ @/bin/cp -f gimp/scripts/gimp-normalize-to-bootsplash.scm tmp-gimp-command @cat gimp/scripts/gimp-convert-to-jpeg.scm >> tmp-gimp-command @for i in */gfxboot/*.png ; do \ echo \(gimp-normalize-to-bootsplash 1.0 \"$$i\" \"`dirname $$i`/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \ done @for i in */background/*.png ; do \ - echo \(gimp-convert-to-jpeg 0.98 \"$$i\" \"$(prefix)$(sharedir)/mga/backgrounds/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \ + echo \(gimp-convert-to-jpeg 0.98 \"$$i\" \"$(DESTDIR)$(sharedir)/mga/backgrounds/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \ done @echo \(gimp-quit 1\) >> tmp-gimp-command @echo running gimp to convert images @@ -28,27 +28,27 @@ install: # GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs "1.0" "*" "bootsplash/data/*.png") (gimp-quit 1))' # GIMP2_DIRECTORY=`pwd`/gimp gimp --console-messages -i -d -b '(begin (gimp-normalize-to-bootsplash-dirs "1.0" "*" "gfxboot/*.png") (gimp-quit 1))' - mkdir -p $(prefix)/$(sharedir)/mga/screensaver - mkdir -p $(prefix)/$(sharedir)/mga/backgrounds - install -m 644 common/screensaver/*.jpg $(prefix)$(sharedir)/mga/screensaver - install -m 644 extra-backgrounds/*.jpg $(prefix)$(sharedir)/mga/backgrounds -# install -m644 */background/*.jpg $(prefix)$(sharedir)/mga/backgrounds + mkdir -p $(DESTDIR)$(sharedir)/mga/screensaver + mkdir -p $(DESTDIR)$(sharedir)/mga/backgrounds + install -m 644 common/screensaver/*.jpg $(DESTDIR)$(sharedir)/mga/screensaver + install -m 644 extra-backgrounds/*.jpg $(DESTDIR)$(sharedir)/mga/backgrounds +# install -m644 */background/*.jpg $(DESTDIR)$(sharedir)/mga/backgrounds @for t in $(THEMES); do \ set -x; set -e; \ - install -d $(prefix)/$(sharedir)/plymouth/themes/$$t; \ - install -m644 common/plymouth/*.script $(prefix)$(sharedir)/plymouth/themes/$$t/; \ - install -m644 common/plymouth/*.png $(prefix)$(sharedir)/plymouth/themes/$$t/; \ - install -m644 $$t/plymouth/*.plymouth $(prefix)$(sharedir)/plymouth/themes/$$t/; \ - install -m644 $$t/plymouth/*.png $(prefix)$(sharedir)/plymouth/themes/$$t/; \ - install -m644 $$t/background/$$t-*.png $(prefix)$(sharedir)/mga/backgrounds/; \ - install -d $(prefix)$(sharedir)/gfxboot/themes/$$t; \ - install -m644 $$t/gfxboot/*.jpg $(prefix)$(sharedir)/gfxboot/themes/$$t/; \ + install -d $(DESTDIR)$(sharedir)/plymouth/themes/$$t; \ + install -m644 common/plymouth/*.script $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ + install -m644 common/plymouth/*.png $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ + install -m644 $$t/plymouth/*.plymouth $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ + install -m644 $$t/plymouth/*.png $(DESTDIR)$(sharedir)/plymouth/themes/$$t/; \ + install -m644 $$t/background/$$t-*.png $(DESTDIR)$(sharedir)/mga/backgrounds/; \ + install -d $(DESTDIR)$(sharedir)/gfxboot/themes/$$t; \ + install -m644 $$t/gfxboot/*.jpg $(DESTDIR)$(sharedir)/gfxboot/themes/$$t/; \ done - @mkdir -p $(prefix)$(libexecdir) - install -m755 mga-bg-res/mga-bg-res.sh $(prefix)$(libexecdir)/mga-bg-res - @mkdir -p $(prefix)$(unitdir) - install -m644 mga-bg-res/mga-bg-res.service $(prefix)$(unitdir)/mga-bg-res.service + @mkdir -p $(DESTDIR)$(libexecdir) + install -m755 mga-bg-res/mga-bg-res.sh $(DESTDIR)$(libexecdir)/mga-bg-res + @mkdir -p $(DESTDIR)$(unitdir) + install -m644 mga-bg-res/mga-bg-res.service $(DESTDIR)$(unitdir)/mga-bg-res.service dist: cleandist export -- cgit v1.2.1