[Pkg-sugar-commit] [sugarish] 07/08: Add draft Makefile.

Siri Reiter siri-guest at moszumanska.debian.org
Sun Dec 27 13:40:41 UTC 2015


This is an automated email from the git hooks/post-receive script.

siri-guest pushed a commit to branch master
in repository sugarish.

commit d6c7353d7fb3edc99f73f254a19dc57acd1a6a01
Author: Siri Reiter <siri at jones.dk>
Date:   Sun Dec 6 22:52:17 2015 +0530

    Add draft Makefile.
---
 Makefile | 19 +++++++++++++++++++
 1 file changed, 19 insertions(+)

diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..097d537
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,19 @@
+sources := $(wildcard themes/xfwm4/*.svg)
+targets = $(patsubst %.svg,%.xpm,$(sources))
+
+all: $(targets)
+
+$(targets): %.xpm: %.pgm %.alpha
+	ppmtoxpm -alphamask="$*.alpha" "$*.pgm" > "$@"
+
+$(targets:.xpm=.png): %.png: %.svg
+	rsvg-convert -w 28 "$<" > "$@"
+
+$(targets:.xpm=.pgm): %.pgm: %.png
+	pngtopnm "$<" > "$@"
+
+$(targets:.xpm=.alpha): %.alpha: %.png
+	pngtopnm -alpha "$<" > "$@"
+
+clean:
+	rm -f $(foreach x,$(basename $(targets)),$x.xpm $x.alpha $x.pgm $x.png)

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sugar/sugarish.git



More information about the pkg-sugar-commit mailing list