13ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# Copyright (C) 2014 The Android Open Source Project 23ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 33ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# Licensed under the Apache License, Version 2.0 (the "License"); 43ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# you may not use this file except in compliance with the License. 53ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# You may obtain a copy of the License at 63ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 73ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# http://www.apache.org/licenses/LICENSE-2.0 83ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 93ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# Unless required by applicable law or agreed to in writing, software 103ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# distributed under the License is distributed on an "AS IS" BASIS, 113ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 123ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# See the License for the specific language governing permissions and 133ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# limitations under the License. 143ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 153ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot 163ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# If you don't need to do a full clean build but would like to touch 173ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# a file or delete some intermediate files, add a clean step to the end 183ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# of the list. These steps will only be run once, if they haven't been 193ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# run before. 203ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 213ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# E.g.: 223ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) 233ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) 243ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 253ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with 263ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# files that are missing or have been moved. 273ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 283ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. 293ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# Use $(OUT_DIR) to refer to the "out" directory. 303ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 313ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# If you need to re-do something that's already mentioned, just copy 323ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# the command and add it to the bottom of the list. E.g., if a change 333ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# that you made last week required touching a file and a change you 343ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# made today requires touching the same file, just copy the old 353ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# touch step and add it to the end of the list. 363ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# 373ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# ***************************************************************** 383ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST ABOVE THE BANNER 393ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# ***************************************************************** 403ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot 413ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# For example: 423ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) 433ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) 443ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) 453ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) 463ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib/libwebviewchromium.so) 473ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/lib64/libwebviewchromium.so) 483ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/webview) 493ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot 503ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# ****************************************************************** 513ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST ABOVE THIS BANNER 523ac458a4513d893241c8fe74535e2be64d6e5efandroid-build-team Robot# ****************************************************************** 53