applnk: pixmaps/Makefile.am - use more "make" way (wildcard, patsubst), ins...
sparky
sparky at pld-linux.org
Mon May 17 00:01:44 CEST 2010
Author: sparky Date: Sun May 16 22:01:45 2010 GMT
Module: applnk Tag: HEAD
---- Log message:
- use more "make" way (wildcard, patsubst), instead of shell
- regen-png is not real target: mark it as .PHONY
---- Files affected:
applnk/pixmaps:
Makefile.am (1.35 -> 1.36)
---- Diffs:
================================================================
Index: applnk/pixmaps/Makefile.am
diff -u applnk/pixmaps/Makefile.am:1.35 applnk/pixmaps/Makefile.am:1.36
--- applnk/pixmaps/Makefile.am:1.35 Sun May 16 23:56:15 2010
+++ applnk/pixmaps/Makefile.am Mon May 17 00:01:38 2010
@@ -3,8 +3,8 @@
pixmapsdir = $(datadir)/pixmaps
-svg_pixmaps = $(shell for i in scalable/*.svg ; do echo $$i ; done)
-png_pixmaps = $(shell for i in $(svg_pixmaps) ; do echo `basename $$i .svg`.png ; done)
+svg_pixmaps = $(wildcard scalable/*.svg)
+png_pixmaps = $(patsubst scalable/%.svg,%.png,$(svg_pixmaps))
EXTRA_DIST = $(png_pixmaps)
@@ -12,6 +12,8 @@
inkscape -z -w 48 -h 48 -y 0.0 -d 90 -f $< -e $@
render-png: $(png_pixmaps) Makefile
+
+.PHONY: render-png
install-data-local:
install -d -m755 $(DESTDIR)$(pixmapsdir)
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/applnk/pixmaps/Makefile.am?r1=1.35&r2=1.36&f=u
More information about the pld-cvs-commit
mailing list