diff options
author | Richard J. Knight <rjknight@us.ibm.com> | 2017-10-13 15:49:25 -0500 |
---|---|---|
committer | Richard J. Knight <rjknight@us.ibm.com> | 2017-10-17 15:05:22 -0500 |
commit | 41e7df45e64f623499b8d286a4012e6e7d24eaf6 (patch) | |
tree | e7a54e4950d2610c3fddeaf2b74b53b424315bf1 /tools/build/common.dir/clean.rules.mk | |
download | talos-hcode-41e7df45e64f623499b8d286a4012e6e7d24eaf6.tar.gz talos-hcode-41e7df45e64f623499b8d286a4012e6e7d24eaf6.zip |
Initial hcode commit
Change-Id: I2c6c9b05c6afbd7732f472ea9cf049d00c5cad45
Diffstat (limited to 'tools/build/common.dir/clean.rules.mk')
-rw-r--r-- | tools/build/common.dir/clean.rules.mk | 35 |
1 files changed, 35 insertions, 0 deletions
diff --git a/tools/build/common.dir/clean.rules.mk b/tools/build/common.dir/clean.rules.mk new file mode 100644 index 00000000..ef2dfcd3 --- /dev/null +++ b/tools/build/common.dir/clean.rules.mk @@ -0,0 +1,35 @@ +# IBM_PROLOG_BEGIN_TAG +# This is an automatically generated prolog. +# +# $Source: tools/build/common.dir/clean.rules.mk $ +# +# IBM CONFIDENTIAL +# +# EKB Project +# +# COPYRIGHT 2015,2017 +# [+] International Business Machines Corp. +# +# +# The source code for this program is not published or otherwise +# divested of its trade secrets, irrespective of what has been +# deposited with the U.S. Copyright Office. +# +# IBM_PROLOG_END_TAG + +# Makefile that defines a special target to remove files. + +## $(call CLEAN_TARGET,/path/to/file) +## Adds target to the __CLEAN_TARGETS variable. +CLEAN_TARGET = $(eval $(call __CLEAN_TARGET,$(1))) +__CLEAN_TARGET = __CLEAN_TARGETS += $(1) + + +# Special rule for CLEAN pass that will delete a file (path/to/file) from +# a rule _BUILD/CLEAN/path/to/file. +.PHONY: _BUILD/CLEAN/% +_BUILD/CLEAN/% : + $(C2) " RM $(notdir $@)" + $(C1) rm -rf $(subst _BUILD/CLEAN/,,$@) + $(C1) rm -rf $(subst .so,_x86_64.so,$(subst libp,p, $(subst _BUILD/CLEAN/,,$@))) + |