summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-05-02 10:15:40 +0200
committerRémi Verschelde <rverschelde@gmail.com>2015-05-02 10:52:19 +0200
commit1c83de68f5a38d25152b40499156f33f557539cb (patch)
tree44a492318d95b705cc235ff93993cd33c02b7cb2
parentf53d09514b67e21ae6ab53f5bdd25d41ed48e959 (diff)
downloadtheme-1c83de68f5a38d25152b40499156f33f557539cb.tar
theme-1c83de68f5a38d25152b40499156f33f557539cb.tar.gz
theme-1c83de68f5a38d25152b40499156f33f557539cb.tar.bz2
theme-1c83de68f5a38d25152b40499156f33f557539cb.tar.xz
theme-1c83de68f5a38d25152b40499156f33f557539cb.zip
Use $DESTDIR instead of $prefix
-rw-r--r--Makefile38
1 files 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