summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRémi Verschelde <rverschelde@gmail.com>2015-05-02 10:30:45 +0200
committerRémi Verschelde <rverschelde@gmail.com>2015-05-02 10:52:30 +0200
commitd0ebdea628307f0504f6998aa2467c78bedb85ee (patch)
treed19a08c747091a231ed01ce3ce8468b03236ce7f
parent1c83de68f5a38d25152b40499156f33f557539cb (diff)
downloadtheme-d0ebdea628307f0504f6998aa2467c78bedb85ee.tar
theme-d0ebdea628307f0504f6998aa2467c78bedb85ee.tar.gz
theme-d0ebdea628307f0504f6998aa2467c78bedb85ee.tar.bz2
theme-d0ebdea628307f0504f6998aa2467c78bedb85ee.tar.xz
theme-d0ebdea628307f0504f6998aa2467c78bedb85ee.zip
Split JPG generation out of the "install" section
-rw-r--r--Makefile10
1 files changed, 5 insertions, 5 deletions
diff --git a/Makefile b/Makefile
index f188949..af6b347 100644
--- a/Makefile
+++ b/Makefile
@@ -9,17 +9,16 @@ libexecdir=/usr/libexec
sharedir=/usr/share
unitdir=/usr/lib/systemd/system
-all:
+all: scripts
-install:
- @mkdir -p $(DESTDIR)$(sharedir)/mga/backgrounds/
+scripts:
@/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\" \"$(DESTDIR)$(sharedir)/mga/backgrounds/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \
+ echo \(gimp-convert-to-jpeg 0.98 \"$$i\" \"`dirname $$i`/`basename $$i .png`.jpg\"\) >> tmp-gimp-command; \
done
@echo \(gimp-quit 1\) >> tmp-gimp-command
@echo running gimp to convert images
@@ -28,11 +27,12 @@ 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))'
+install:
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
+ install -m644 */background/*.jpg $(DESTDIR)$(sharedir)/mga/backgrounds
@for t in $(THEMES); do \
set -x; set -e; \
install -d $(DESTDIR)$(sharedir)/plymouth/themes/$$t; \