## Function to make this work with Gnu and BSD sed
define sedi
- sed --version >/dev/null 2>&1 && sed -i -- "$@" || sed -i "" "$@"
+ sed --version >/dev/null 2>&1 && sed -i || sed -i ""
endef
# de - German
de/%.html: esd-de.po $(foreach f,$(SRC),en/$f)
- po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
- $(sedi '{s|img/en/|img/de/|g;}' $@)
+ -po4a-translate $(PO4A_FLAGS) -m en/$*.html -p $< -l $@
+ $(sedi) '{s|img/en/|img/de/|g;}' $@
# fa - Persian
fa/%.html: esd-fa.po $(foreach f,$(SRC),en/$f)