|
|
@@ -179,6 +179,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]/%.o]
|
|
|
+ #endif
|
|
|
+ #if $[igatemout]
|
|
|
+ rm -f $[so_dir]/$[igatemout] $[igatemout:%.cxx=$[so_dir]/%.o]
|
|
|
+ #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.
|
|
|
@@ -189,6 +206,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]] \
|
|
|
@@ -204,11 +224,18 @@ cleanall : clean
|
|
|
$[installed_files]
|
|
|
install : all $[install_targets]
|
|
|
|
|
|
+install-igate : $[sort $[installed_igate_files]]
|
|
|
+
|
|
|
uninstall : $[TARGET(metalib_target lib_target ss_lib_target static_lib_target):%=uninstall-lib%] $[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
|
|
|
@@ -737,12 +764,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]
|
|
|
rm -f $[install_headers_dir]/$[CONFIG_HEADER]
|
|
|
#endif
|
|
|
+uninstall-igate : $[subdirs:%=uninstall-igate-%]
|
|
|
|
|
|
// Somehow, something in the cttools confuses some shells, so that
|
|
|
// when we are attached, 'cd foo' doesn't work, but 'cd ./foo' does.
|
|
|
@@ -765,6 +795,11 @@ clean-$[dirname] :
|
|
|
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
|
|
|
@@ -775,11 +810,21 @@ install-$[dirname] : $[patsubst %,install-%,$[dirnames $[if $[build_directory],$
|
|
|
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
|
|
|
#end dirname
|
|
|
|
|
|
+#formap dirname subdirs
|
|
|
+uninstall-igate-$[dirname] :
|
|
|
+ cd ./$[PATH]; $(MAKE) uninstall-igate
|
|
|
+#end dirname
|
|
|
+
|
|
|
#if $[ne $[CONFIG_HEADER],]
|
|
|
$[install_headers_dir] :
|
|
|
@test -d $[install_headers_dir] || echo mkdir -p $[install_headers_dir]
|