xref: /aosp_15_r20/external/ims/rcs/rcsmanager/CleanSpec.mk (revision 060f4407e8083d867a85d4a869747d9905816290)
1*060f4407SAndroid Build Coastguard Worker # Copyright (c) 2015, Motorola Mobility LLC
2*060f4407SAndroid Build Coastguard Worker # All rights reserved.
3*060f4407SAndroid Build Coastguard Worker #
4*060f4407SAndroid Build Coastguard Worker # Redistribution and use in source and binary forms, with or without
5*060f4407SAndroid Build Coastguard Worker # modification, are permitted provided that the following conditions are met:
6*060f4407SAndroid Build Coastguard Worker #     - Redistributions of source code must retain the above copyright
7*060f4407SAndroid Build Coastguard Worker #       notice, this list of conditions and the following disclaimer.
8*060f4407SAndroid Build Coastguard Worker #     - Redistributions in binary form must reproduce the above copyright
9*060f4407SAndroid Build Coastguard Worker #       notice, this list of conditions and the following disclaimer in the
10*060f4407SAndroid Build Coastguard Worker #       documentation and/or other materials provided with the distribution.
11*060f4407SAndroid Build Coastguard Worker #     - Neither the name of Motorola Mobility nor the
12*060f4407SAndroid Build Coastguard Worker #       names of its contributors may be used to endorse or promote products
13*060f4407SAndroid Build Coastguard Worker #       derived from this software without specific prior written permission.
14*060f4407SAndroid Build Coastguard Worker #
15*060f4407SAndroid Build Coastguard Worker # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
16*060f4407SAndroid Build Coastguard Worker # AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO,
17*060f4407SAndroid Build Coastguard Worker # THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
18*060f4407SAndroid Build Coastguard Worker # PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL MOTOROLA MOBILITY LLC BE LIABLE
19*060f4407SAndroid Build Coastguard Worker # FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
20*060f4407SAndroid Build Coastguard Worker # DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
21*060f4407SAndroid Build Coastguard Worker # OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
22*060f4407SAndroid Build Coastguard Worker # HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
23*060f4407SAndroid Build Coastguard Worker # LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
24*060f4407SAndroid Build Coastguard Worker # OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH
25*060f4407SAndroid Build Coastguard Worker # DAMAGE.
26*060f4407SAndroid Build Coastguard Worker
27*060f4407SAndroid Build Coastguard Worker# If you don't need to do a full clean build but would like to touch
28*060f4407SAndroid Build Coastguard Worker# a file or delete some intermediate files, add a clean step to the end
29*060f4407SAndroid Build Coastguard Worker# of the list.  These steps will only be run once, if they haven't been
30*060f4407SAndroid Build Coastguard Worker# run before.
31*060f4407SAndroid Build Coastguard Worker#
32*060f4407SAndroid Build Coastguard Worker# E.g.:
33*060f4407SAndroid Build Coastguard Worker#     $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
34*060f4407SAndroid Build Coastguard Worker#     $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
35*060f4407SAndroid Build Coastguard Worker#
36*060f4407SAndroid Build Coastguard Worker# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
37*060f4407SAndroid Build Coastguard Worker# files that are missing or have been moved.
38*060f4407SAndroid Build Coastguard Worker#
39*060f4407SAndroid Build Coastguard Worker# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
40*060f4407SAndroid Build Coastguard Worker# Use $(OUT_DIR) to refer to the "out" directory.
41*060f4407SAndroid Build Coastguard Worker#
42*060f4407SAndroid Build Coastguard Worker# If you need to re-do something that's already mentioned, just copy
43*060f4407SAndroid Build Coastguard Worker# the command and add it to the bottom of the list.  E.g., if a change
44*060f4407SAndroid Build Coastguard Worker# that you made last week required touching a file and a change you
45*060f4407SAndroid Build Coastguard Worker# made today requires touching the same file, just copy the old
46*060f4407SAndroid Build Coastguard Worker# touch step and add it to the end of the list.
47*060f4407SAndroid Build Coastguard Worker#
48*060f4407SAndroid Build Coastguard Worker# ************************************************
49*060f4407SAndroid Build Coastguard Worker# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
50*060f4407SAndroid Build Coastguard Worker# ************************************************
51*060f4407SAndroid Build Coastguard Worker
52*060f4407SAndroid Build Coastguard Worker$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/com.android.ims.rcsmanager_intermediates)
53*060f4407SAndroid Build Coastguard Worker$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/*/obj/JAVA_LIBRARIES/com.android.ims.rcsmanager_intermediates)
54*060f4407SAndroid Build Coastguard Worker$(call add-clean-step, rm -rf $(OUT_DIR)/target/product/*/obj/ETC/com.android.ims.rcsmanager.xml_intermediates)
55*060f4407SAndroid Build Coastguard Worker$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/framework/com.android.ims.rcsmanager.jar)
56*060f4407SAndroid Build Coastguard Worker$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/etc/permissions/com.android.ims.rcsmanager.xml)
57*060f4407SAndroid Build Coastguard Worker
58*060f4407SAndroid Build Coastguard Worker# ************************************************
59*060f4407SAndroid Build Coastguard Worker# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
60*060f4407SAndroid Build Coastguard Worker# ************************************************
61