# Copyright (c) 1998-1999 ACT Financial Systems Pty Ltd. # All rights reserved. # ============================================================== # This make library may be used and distributed under the terms # of the GNU LGPL, as published by the Free Software Foundation. # See the file COPYING for details. # ============================================================== # $id$ # #//+TODO Makefile support for custom build steps is incomplete. # #------------------------------------------------------------------------------------------------------- # text requires: #------------------------------------------------------------------------------------------------------- # provides variables: #------------------------------------------------------------------------------------------------------- # provides commands: #------------------------------------------------------------------------------------------------------- # contributes to: #------------------------------------------------------------------------------------------------------- custom_suffix=custom maybe_custom_result = $(test_result_dir)/$(target_name).$(custom_suffix) define run_custom_process @$(mkemissiondir) $(test_result_dir) if [ -n "$(strip $(CUSTOM_BUILD))" ]; then \ for script in $(CUSTOM_BUILD); do \ if (eval "$$script"); then \ final_result="pass"; \ else \ final_result="fail"; \ fi; \ done \ fi; \ if [ "$$final_result" != "pass" ]; then \ exit 1; \ fi endef $(test_result_dir)/%.$(custom_suffix) : $(inst_bin_dir)/%$(program_ext) $(run_custom_process) .PHONY : custom_norec custom custom_norec : install_norec $(maybe_custom_result) custom :: custom_norec