m4_dnl -*- Mode: HTML -*-x m4_changequote([,])m4_dnl m4_dnl# m4_foreachq(x, `item_1, item_2, ..., item_n', stmt) m4_dnl# quoted list, alternate improved version m4_define([m4_foreachq],[m4_ifelse([$2],[],[],[m4_pushdef([$1])_$0([$1],[$3],[],$2)m4_popdef([$1])])])m4_dnl m4_define([_m4_foreachq],[m4_ifelse([$#],[3],[],[m4_define([$1],[$4])$2[]$0([$1],[$2],m4_shift(m4_shift(m4_shift($@))))])])m4_dnl m4_define(_YEAR_,m4_esyscmd(date +%Y|tr -d '\n')) Online Editor m4_dnl In the debug case, just write all the .css files here m4_ifelse(DEBUG,[true], m4_foreachq([fileCSS],[LOLEAFLET_CSS],[ ]), [ ]) m4_ifelse(IOSAPP,[true], []) m4_ifelse(ANDROIDAPP,[true], []) m4_dnl Handle localization m4_ifelse(MOBILEAPP,[true], [ m4_ifelse(IOSAPP,[true], [], [ ])], [ ] )m4_dnl
m4_ifelse(MOBILEAPP,[true], m4_ifelse(DEBUG,[true],m4_foreachq([fileJS],[LOLEAFLET_JS], [ ]), [ ]), m4_ifelse(DEBUG,[true],m4_foreachq([fileJS],[LOLEAFLET_JS], [ ]), [ ]) )m4_dnl