Module: check_mk
Branch: master
Commit: c13526c4d20ab770072ce79e1a4e99b25941fa5e
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=c13526c4d20ab7…
Author: Sven Panne <sp(a)mathias-kettner.de>
Date: Mon Feb 6 16:39:04 2017 +0100
Fixed optimize-images.
Change-Id: Ied384c00df6e18b0277056c75fd40b346084aa98
---
Makefile | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2c35f80..d5b35b4 100644
--- a/Makefile
+++ b/Makefile
@@ -95,6 +95,9 @@ WERKS := $(wildcard $(addsuffix /.werks/[0-9]*,.
enterprise))
JAVASCRIPT_SOURCES := $(filter-out %_min.js,$(wildcard $(addsuffix /web/htdocs/js/*.js,.
enterprise)))
JAVASCRIPT_MINI := $(patsubst %.js,%_min.js,$(JAVASCRIPT_SOURCES))
+PNG_FILES := $(wildcard $(addsuffix /*.png,web/htdocs/images
web/htdocs/images/icons enterprise/web/htdocs/images enterprise/web/htdocs/images/icons))
+
+
.PHONY: all analyze build check check-binaries check-permissions check-spaces \
check-version clean cppcheck dist documentation format \
GTAGS headers healspaces help install iwyu mrproper \
@@ -311,7 +314,7 @@ healspaces:
optimize-images:
@if type pngcrush >/dev/null 2>&1; then \
- for F in web/htdocs/images/*.png web/htdocs/images/icons/*.png; do \
+ for F in $(PNG_FILES); do \
echo "Optimizing $$F..." ; \
pngcrush -q -rem alla -brute $$F $$F.opt ; \
mv $$F.opt $$F; \