# HG changeset patch # User John Donoghue # Date 1426691919 14400 # Node ID 8ba35b7b355d14010b51fe4098cd8acc980f828f # Parent 2e7497ff25356d9acd24b4a286dad2a306aa235c Add cross buioldable mkoctfile target * configure.ac: add option for --enable-cross-mkoctfile * src/Makefile.am: on enable cross mkoctfile, add rules to generate $(host_triplet)-mkoctfile * build-aux/common.mk: add new macro for do_subst_cross_config_vals diff -r 2e7497ff2535 -r 8ba35b7b355d build-aux/common.mk --- a/build-aux/common.mk Wed Mar 18 11:30:07 2015 -0700 +++ b/build-aux/common.mk Wed Mar 18 11:18:39 2015 -0400 @@ -661,6 +661,177 @@ $(simple_move_if_change_rule) endef +define do_subst_cross_config_vals + $(SED) < $< \ + -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $( $@-t && \ + $(simple_move_if_change_rule) +endef + + define do_subst_default_vals $(SED) < $< > $@-t \ -e "s|%NO_EDIT_WARNING%|DO NOT EDIT! Generated automatically from $(