summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorGreg Roach <fisharebest@gmail.com>2013-09-08 23:55:27 +0100
committerGreg Roach <fisharebest@gmail.com>2013-09-08 23:55:27 +0100
commit0c219c33c2cfbcd14b5cb6170231a95748905d39 (patch)
treed0b34115b1572414520b2702385478744de8b4b5 /Makefile
parentede1a7f5ccea19a7c3c6596ccebbb40aef3fd007 (diff)
downloadwebtrees-0c219c33c2cfbcd14b5cb6170231a95748905d39.tar.gz
webtrees-0c219c33c2cfbcd14b5cb6170231a95748905d39.tar.bz2
webtrees-0c219c33c2cfbcd14b5cb6170231a95748905d39.zip
Add rule to create mirrored icons for RTL pages
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile10
1 files changed, 9 insertions, 1 deletions
diff --git a/Makefile b/Makefile
index 2a22cef09d..7390125a0e 100644
--- a/Makefile
+++ b/Makefile
@@ -22,6 +22,8 @@ JS_FILES=$(shell find $(BUILD_DIR) -name "*.js")
# Files to mirror
CSS_LTR_FILES=$(shell find . -name "*-ltr.css")
CSS_RTL_FILES=$(patsubst %-ltr.css,%-rtl.css,$(CSS_LTR_FILES))
+PNG_LTR_FILES=$(shell find . -name "*-ltr.png")
+PNG_RTL_FILES=$(patsubst %-ltr.css,%-rtl.png,$(PNG_LTR_FILES))
# Use maximum compression
GZIP=gzip -9
@@ -31,7 +33,7 @@ GZIP=gzip -9
################################################################################
# Update
################################################################################
-update: $(MO_FILES) $(CSS_RTL_FILES)
+update: $(MO_FILES) $(CSS_RTL_FILES) $(PNG_RTL_FILES)
################################################################################
# Check for PHP syntax errors
@@ -103,3 +105,9 @@ $(PO_FILES): language/webtrees.pot
################################################################################
%-rtl.css: %-ltr.css
java -jar $(CLOSURE_CSS) --output-orientation RTL --pretty-print -o $@ $<
+
+################################################################################
+# Automatically generate RTL images from LTR images
+################################################################################
+%-rtl.png: %-ltr.png
+ convert $< -flop $@