Commit a8ca343a authored by Ben Avison's avatar Ben Avison Committed by ROOL
Browse files

Rewrite rules for rom install

BuildSys 7.91 changes how top-level phony rules are overridden.
In this component, the `install`, `install_rom`, `rom` and `standalone`
targets are redefined after `AAsmModule` is included, so they will be
affected. Rewrite the rules so that they will continue to work the same (at
least for native builds) both before and after BuildSys is updated.

Version 0.30. Not tagged
parent bf30d3b4
......@@ -27,18 +27,31 @@ AUN_MODULE = ${AUN_DIRS}${SEP}AUNMsgMod
include StdTools
include AAsmModule
standalone: ${AUN_MODULE}
# Definitions of rules for top-level phony targets are required until
# AAsmModule is updated. After this point, the definitions in AAsmModule
# will take precedence because they are encountered first: amu will emit a
# warning about the definitions below, but that can safely be ignored.
install: install_${CUSTOMSA}
@${NOP}
install_rom: install_rom_${CUSTOMROM}
@${NOP}
rom: rom_${CUSTOMROM}
@${NOP}
standalone: standalone_${CUSTOMSA}
@${NOP}
standalone_custom: ${AUN_MODULE}
@${ECHO} ${COMPONENT}: standalone module built
install: ${AUN_MODULE}
install_custom: ${AUN_MODULE}
${MKDIR} ${INSTDIR}
${CP} ${AUN_MODULE} ${INSTDIR}${SEP}${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: standalone module installed
rom: ${AUN_MODULE}
rom_custom: ${AUN_MODULE}
@${ECHO} ${COMPONENT}: rom module built
install_rom: ${AUN_MODULE}
install_rom_custom: ${AUN_MODULE}
${CP} ${AUN_MODULE} ${INSTDIR}${SEP}${TARGET} ${CPFLAGS}
@${ECHO} ${COMPONENT}: rom module installed
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment