*** empty log message ***

This commit is contained in:
David Rose 2001-05-11 21:34:06 +00:00
parent 2db37ecbc4
commit 5000ac5975
3 changed files with 110 additions and 20 deletions

View File

@ -212,6 +212,23 @@ cleanall : clean
rm -f $[DEPENDENCY_CACHE_FILENAME]
#endif
clean-igate :
#forscopes metalib_target lib_target ss_lib_target
#define igatedb $[get_igatedb]
#define igateoutput $[get_igateoutput]
#define igatemscan $[components $[get_igatedb:%=$[RELDIR]/$[so_dir]/%],$[active_component_libs]]
#define igatemout $[if $[igatemscan],lib$[TARGET]_module.cxx]
#if $[igatedb]
rm -f $[so_dir]/$[igatedb]
#endif
#if $[igateoutput]
rm -f $[so_dir]/$[igateoutput] $[igateoutput:%.cxx=$[so_dir]/%.obj]
#endif
#if $[igatemout]
rm -f $[so_dir]/$[igatemout] $[igatemout:%.cxx=$[so_dir]/%.obj]
#endif
#end metalib_target lib_target ss_lib_target
// Now, 'install' and 'uninstall'. These simply copy files into the
// install directory (or remove them). The 'install' rule also makes
// the directories if necessary.
@ -222,6 +239,9 @@ cleanall : clean
$[INSTALL_DATA:%=$[install_data_dir]/%] \
$[INSTALL_CONFIG:%=$[install_config_dir]/%]
#define installed_igate_files \
$[get_igatedb(metalib_target lib_target ss_lib_target):%=$[install_igatedb_dir]/%]
#define install_targets \
$[sort \
$[if $[install_lib],$[install_lib_dir]] \
@ -238,11 +258,18 @@ cleanall : clean
install : all $[install_targets]
install-igate : $[sort $[installed_igate_files]]
uninstall : $[active_target(metalib_target lib_target static_lib_target ss_lib_target):%=uninstall-lib%] $[active_target(bin_target):%=uninstall-%]
#if $[installed_files]
rm -f $[sort $[installed_files]]
#endif
uninstall-igate :
#if $[installed_igate_files]
rm -f $[sort $[installed_igate_files]]
#endif
// We need a rule for each directory we might need to make. This
// loops through the full set of directories and creates a rule to
@ -863,42 +890,60 @@ $[DEPENDENCY_CACHE_FILENAME] : $[dep_sources]
all : $[subdirs]
test : $[subdirs:%=test-%]
clean : $[subdirs:%=clean-%]
clean-igate : $[subdirs:%=clean-igate-%]
cleanall : $[subdirs:%=cleanall-%]
install : $[if $[CONFIG_HEADER],$[install_headers_dir] $[install_headers_dir]/$[CONFIG_HEADER]] $[subdirs:%=install-%]
install-igate : $[subdirs:%=install-igate-%]
uninstall : $[subdirs:%=uninstall-%]
#if $[CONFIG_HEADER]
rm -f $[install_headers_dir]/$[CONFIG_HEADER]
#endif
uninstall-igate : $[subdirs:%=uninstall-igate-%]
#formap dirname subdirs
#define depends
$[dirname] : $[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]
cd ./$[PATH]; $(MAKE) all
cd ./$[PATH] && $(MAKE) all
#end dirname
#formap dirname subdirs
test-$[dirname] :
cd ./$[PATH]; $(MAKE) test
cd ./$[PATH] && $(MAKE) test
#end dirname
#formap dirname subdirs
clean-$[dirname] :
cd ./$[PATH]; $(MAKE) clean
cd ./$[PATH] && $(MAKE) clean
#end dirname
#formap dirname subdirs
clean-igate-$[dirname] :
cd ./$[PATH] && $(MAKE) clean-igate
#end dirname
#formap dirname subdirs
cleanall-$[dirname] : $[patsubst %,cleanall-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
cd ./$[PATH]; $(MAKE) cleanall
cd ./$[PATH] && $(MAKE) cleanall
#end dirname
#formap dirname subdirs
install-$[dirname] : $[patsubst %,install-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
cd ./$[PATH]; $(MAKE) install
cd ./$[PATH] && $(MAKE) install
#end dirname
#formap dirname subdirs
install-igate-$[dirname] :
cd ./$[PATH] && $(MAKE) install-igate
#end dirname
#formap dirname subdirs
uninstall-$[dirname] :
cd ./$[PATH]; $(MAKE) uninstall
cd ./$[PATH] && $(MAKE) uninstall
#end dirname
#formap dirname subdirs
uninstall-igate-$[dirname] :
cd ./$[PATH] && $(MAKE) uninstall-igate
#end dirname
#if $[ne $[CONFIG_HEADER],]

View File

@ -212,6 +212,23 @@ cleanall : clean
-del /f $[DEPENDENCY_CACHE_FILENAME]
#endif
clean-igate :
#forscopes metalib_target lib_target ss_lib_target
#define igatedb $[get_igatedb]
#define igateoutput $[get_igateoutput]
#define igatemscan $[components $[get_igatedb:%=$[RELDIR]/$[so_dir]/%],$[active_component_libs]]
#define igatemout $[if $[igatemscan],lib$[TARGET]_module.cxx]
#if $[igatedb]
-del /f $[so_dir]\$[igatedb]
#endif
#if $[igateoutput]
-del /f $[so_dir]\$[igateoutput] $[igateoutput:%.cxx=$[so_dir]\%.obj]
#endif
#if $[igatemout]
-del /f $[so_dir]\$[igatemout] $[igatemout:%.cxx=$[so_dir]/%.obj]
#endif
#end metalib_target lib_target ss_lib_target
// Now, 'install' and 'uninstall'. These simply copy files into the
// install directory (or remove them). The 'install' rule also makes
// the directories if necessary.
@ -222,6 +239,9 @@ cleanall : clean
$[INSTALL_DATA:%=$[install_data_dir]\%] \
$[INSTALL_CONFIG:%=$[install_config_dir]\%]
#define installed_igate_files \
$[get_igatedb(metalib_target lib_target ss_lib_target):%=$[install_igatedb_dir]\%]
#define install_targets \
$[sort \
$[if $[install_lib],$[install_lib_dir]] \
@ -238,11 +258,18 @@ cleanall : clean
install : all $[install_targets]
install-igate : $[sort $[installed_igate_files]]
uninstall : $[active_target(metalib_target lib_target static_lib_target ss_lib_target):%=uninstall-lib%] $[active_target(bin_target):%=uninstall-%]
#foreach file $[sort $[installed_files]]
-del /f $[file]
#end file
uninstall-igate :
#foreach file $[sort $[installed_igate_files]]
-del /f $[file]
#end file
// We need a rule for each directory we might need to make. This
// loops through the full set of directories and creates a rule to
@ -835,12 +862,15 @@ $[DEPENDENCY_CACHE_FILENAME] : $[dep_sources]
all : $[subdirs]
test : $[subdirs:%=test-%]
clean : $[subdirs:%=clean-%]
clean-igate : $[subdirs:%=clean-igate-%]
cleanall : $[subdirs:%=cleanall-%]
install : $[if $[CONFIG_HEADER],$[install_headers_dir] $[install_headers_dir]\$[CONFIG_HEADER]] $[subdirs:%=install-%]
install-igate : $[subdirs:%=install-igate-%]
uninstall : $[subdirs:%=uninstall-%]
#if $[CONFIG_HEADER]
-del /f $[install_headers_dir]\$[CONFIG_HEADER]
#endif
uninstall-igate : $[subdirs:%=uninstall-igate-%]
#formap dirname subdirs
#define depends
@ -858,6 +888,11 @@ clean-$[dirname] :
cd $[osfilename $[PATH]] && $(MAKE) /nologo clean
#end dirname
#formap dirname subdirs
clean-igate-$[dirname] :
cd $[osfilename $[PATH]] && $(MAKE) /nologo clean-igate
#end dirname
#formap dirname subdirs
cleanall-$[dirname] : $[patsubst %,cleanall-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
cd $[osfilename $[PATH]] && $(MAKE) /nologo cleanall
@ -868,11 +903,21 @@ install-$[dirname] : $[patsubst %,install-%,$[dirnames $[if $[build_directory],$
cd $[osfilename $[PATH]] && $(MAKE) /nologo install
#end dirname
#formap dirname subdirs
install-igate-$[dirname] :
cd $[osfilename $[PATH]] && $(MAKE) /nologo install-igate
#end dirname
#formap dirname subdirs
uninstall-$[dirname] :
cd $[osfilename $[PATH]] && $(MAKE) /nologo uninstall
#end dirname
#formap dirname subdirs
uninstall-igate-$[dirname] :
cd $[osfilename $[PATH]] && $(MAKE) /nologo uninstall-igate
#end dirname
#if $[ne $[CONFIG_HEADER],]
$[install_headers_dir] :
mkdir $[install_headers_dir]

View File

@ -325,7 +325,7 @@ uninstall-lib$[TARGET] :
$[install_lib_dir]/lib$[TARGET].so : $[so_dir]/lib$[TARGET].so
#define local lib$[TARGET].so
#define dest $[install_lib_dir]
cd ./$[so_dir]; $[INSTALL_PROG]
cd ./$[so_dir] && $[INSTALL_PROG]
#if $[igatescan]
// Now, some additional rules to generate and compile the interrogate
@ -343,7 +343,7 @@ $[install_lib_dir]/lib$[TARGET].so : $[so_dir]/lib$[TARGET].so
$[install_igatedb_dir]/$[igatedb] : $[so_dir]/$[igatedb]
#define local $[igatedb]
#define dest $[install_igatedb_dir]
cd ./$[so_dir]; $[INSTALL]
cd ./$[so_dir] && $[INSTALL]
// We have to split this out as a separate rule to properly support
// parallel make.
@ -450,7 +450,7 @@ uninstall-lib$[TARGET] :
$[install_lib_dir]/lib$[TARGET].a : $[st_dir]/lib$[TARGET].a
#define local lib$[TARGET].a
#define dest $[install_lib_dir]
cd ./$[st_dir]; $[INSTALL]
cd ./$[st_dir] && $[INSTALL]
#end static_lib_target
@ -485,7 +485,7 @@ uninstall-$[TARGET] :
$[install_bin_dir]/$[TARGET] : $[st_dir]/$[TARGET]
#define local $[TARGET]
#define dest $[install_bin_dir]
cd ./$[st_dir]; $[INSTALL_PROG]
cd ./$[st_dir] && $[INSTALL_PROG]
#end sed_bin_target
@ -533,7 +533,7 @@ uninstall-$[TARGET] :
$[install_bin_dir]/$[TARGET] : $[st_dir]/$[TARGET]
#define local $[TARGET]
#define dest $[install_bin_dir]
cd ./$[st_dir]; $[INSTALL_PROG]
cd ./$[st_dir] && $[INSTALL_PROG]
#end bin_target
@ -782,47 +782,47 @@ uninstall-igate : $[subdirs:%=uninstall-igate-%]
#formap dirname subdirs
#define depends
$[dirname] : $[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]
cd ./$[PATH]; $(MAKE) all
cd ./$[PATH] && $(MAKE) all
#end dirname
#formap dirname subdirs
test-$[dirname] :
cd ./$[PATH]; $(MAKE) test
cd ./$[PATH] && $(MAKE) test
#end dirname
#formap dirname subdirs
clean-$[dirname] :
cd ./$[PATH]; $(MAKE) clean
cd ./$[PATH] && $(MAKE) clean
#end dirname
#formap dirname subdirs
clean-igate-$[dirname] :
cd ./$[PATH]; $(MAKE) clean-igate
cd ./$[PATH] && $(MAKE) clean-igate
#end dirname
#formap dirname subdirs
cleanall-$[dirname] : $[patsubst %,cleanall-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
cd ./$[PATH]; $(MAKE) cleanall
cd ./$[PATH] && $(MAKE) cleanall
#end dirname
#formap dirname subdirs
install-$[dirname] : $[patsubst %,install-%,$[dirnames $[if $[build_directory],$[DIRNAME]],$[DEPEND_DIRS]]]
cd ./$[PATH]; $(MAKE) install
cd ./$[PATH] && $(MAKE) install
#end dirname
#formap dirname subdirs
install-igate-$[dirname] :
cd ./$[PATH]; $(MAKE) install-igate
cd ./$[PATH] && $(MAKE) install-igate
#end dirname
#formap dirname subdirs
uninstall-$[dirname] :
cd ./$[PATH]; $(MAKE) uninstall
cd ./$[PATH] && $(MAKE) uninstall
#end dirname
#formap dirname subdirs
uninstall-igate-$[dirname] :
cd ./$[PATH]; $(MAKE) uninstall-igate
cd ./$[PATH] && $(MAKE) uninstall-igate
#end dirname
#if $[ne $[CONFIG_HEADER],]