Module: check_mk
Branch: master
Commit: fe6bc56af4114bfd919cbe56db6c035107dd535d
URL:
http://git.mathias-kettner.de/git/?p=check_mk.git;a=commit;h=fe6bc56af4114b…
Author: Lars Michelsen <lm(a)mathias-kettner.de>
Date: Mon Dec 1 23:43:14 2014 +0100
Added new makefile target optimize-images to shrink PNG images
---
.bugs/2208 | 7 +++++++
Makefile | 6 ++++++
2 files changed, 13 insertions(+)
diff --git a/.bugs/2208 b/.bugs/2208
new file mode 100644
index 0000000..e154b85
--- /dev/null
+++ b/.bugs/2208
@@ -0,0 +1,7 @@
+Title: Add "make optimize-images" to normal build process
+Component: multisite
+State: open
+Date: 2014-12-01 22:53:37
+Targetversion: 1.2.5i1
+Class: todo
+
diff --git a/Makefile b/Makefile
index ca94567..0cfb58d 100644
--- a/Makefile
+++ b/Makefile
@@ -267,6 +267,12 @@ healspaces:
@echo "Removing trailing spaces from code lines..."
@sed -ri 's/[[:space:]]+$$//g' $(HEAL_SPACES_IN)
+optimize-images:
+ @for F in web/htdocs/images/*.png web/htdocs/images/icons/*.png; do \
+ echo "Optimizing $$F..." ; \
+ pngcrush -q -rem alla -brute $$F $$F.opt ; \
+ mv $$F.opt $$F; \
+ done
clean:
rm -rf dist.tmp rpm.topdir *.rpm *.deb *.exe \