From 7c3cdd08a05bc275fcf94681d268f10bc75a1a60 Mon Sep 17 00:00:00 2001 From: cxgeorge <> Date: Tue, 1 Oct 2002 20:34:11 +0000 Subject: [PATCH] add bin_postprocess_target --- dtool/pptempl/Template.gmsvc.pp | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/dtool/pptempl/Template.gmsvc.pp b/dtool/pptempl/Template.gmsvc.pp index 72622375fa..0d0f0b9f9b 100644 --- a/dtool/pptempl/Template.gmsvc.pp +++ b/dtool/pptempl/Template.gmsvc.pp @@ -608,6 +608,7 @@ $[ODIR]/$[TARGET].pdb : $[ODIR]/$[TARGET].exe $[INSTALL_SCRIPTS:%=$[install_bin_dir]/%] \ $[INSTALL_HEADERS:%=$[install_headers_dir]/%] \ $[INSTALL_DATA:%=$[install_data_dir]/%] \ + $[if $[bin_postprocess_target],$[install_bin_dir]/$[bin_postprocess_target].exe] \ $[INSTALL_CONFIG:%=$[install_config_dir]/%] install-$[TARGET] : $[installed_files] @@ -629,10 +630,20 @@ $[install_bin_dir]/$[TARGET].pdb : $[ODIR]/$[TARGET].pdb $[TAB] cp -f $[ODIR]/$[local] $[dest] #endif +#if $[bin_postprocess_target] + +#define exename $[bin_postprocess_target].exe +#define dest $[install_bin_dir] + +$[ODIR]/$[bin_postprocess_target].exe : $[ODIR]/$[TARGET].exe +$[TAB] $[bin_postprocess_cmd] $[ODIR]/$[TARGET].exe $[ODIR]/$[exename] + +$[install_bin_dir]/$[bin_postprocess_target].exe : $[ODIR]/$[exename] +$[TAB] cp -f $[ODIR]/$[exename] $[dest] +#endif + #end bin_target - - ///////////////////////////////////////////////////////////////////// // The noinst_bin_targets and the test_bin_targets share the property // of being built (when requested), but having no install rules. @@ -654,8 +665,6 @@ $[TAB] $[LINK_BIN_C] #end noinst_bin_target test_bin_target - - ///////////////////////////////////////////////////////////////////// // Rules to run bison and/or flex as needed. /////////////////////////////////////////////////////////////////////