1*bf2c3715SXin Li# Copyright (C) 2007 The Android Open Source Project 2*bf2c3715SXin Li# 3*bf2c3715SXin Li# Licensed under the Apache License, Version 2.0 (the "License"); 4*bf2c3715SXin Li# you may not use this file except in compliance with the License. 5*bf2c3715SXin Li# You may obtain a copy of the License at 6*bf2c3715SXin Li# 7*bf2c3715SXin Li# http://www.apache.org/licenses/LICENSE-2.0 8*bf2c3715SXin Li# 9*bf2c3715SXin Li# Unless required by applicable law or agreed to in writing, software 10*bf2c3715SXin Li# distributed under the License is distributed on an "AS IS" BASIS, 11*bf2c3715SXin Li# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 12*bf2c3715SXin Li# See the License for the specific language governing permissions and 13*bf2c3715SXin Li# limitations under the License. 14*bf2c3715SXin Li# 15*bf2c3715SXin Li 16*bf2c3715SXin Li# If you don't need to do a full clean build but would like to touch 17*bf2c3715SXin Li# a file or delete some intermediate files, add a clean step to the end 18*bf2c3715SXin Li# of the list. These steps will only be run once, if they haven't been 19*bf2c3715SXin Li# run before. 20*bf2c3715SXin Li# 21*bf2c3715SXin Li# E.g.: 22*bf2c3715SXin Li# $(call add-clean-step, touch -c external/sqlite/sqlite3.h) 23*bf2c3715SXin Li# $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates) 24*bf2c3715SXin Li# 25*bf2c3715SXin Li# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with 26*bf2c3715SXin Li# files that are missing or have been moved. 27*bf2c3715SXin Li# 28*bf2c3715SXin Li# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory. 29*bf2c3715SXin Li# Use $(OUT_DIR) to refer to the "out" directory. 30*bf2c3715SXin Li# 31*bf2c3715SXin Li# If you need to re-do something that's already mentioned, just copy 32*bf2c3715SXin Li# the command and add it to the bottom of the list. E.g., if a change 33*bf2c3715SXin Li# that you made last week required touching a file and a change you 34*bf2c3715SXin Li# made today requires touching the same file, just copy the old 35*bf2c3715SXin Li# touch step and add it to the end of the list. 36*bf2c3715SXin Li# 37*bf2c3715SXin Li# ************************************************ 38*bf2c3715SXin Li# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST 39*bf2c3715SXin Li# ************************************************ 40*bf2c3715SXin Li 41*bf2c3715SXin Li# For example: 42*bf2c3715SXin Li#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates) 43*bf2c3715SXin Li#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates) 44*bf2c3715SXin Li#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f) 45*bf2c3715SXin Li#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*) 46*bf2c3715SXin Li 47*bf2c3715SXin Li# ************************************************ 48*bf2c3715SXin Li# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST 49*bf2c3715SXin Li# ************************************************ 50*bf2c3715SXin Li 51*bf2c3715SXin Li# This empty file is here solely for the purpose of optimizing the Android build 52*bf2c3715SXin Li# Please keep it there, and empty, thanks. 53