17c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# Copyright (C) 2007 The Android Open Source Project
27c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
37c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# Licensed under the Apache License, Version 2.0 (the "License");
47c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# you may not use this file except in compliance with the License.
57c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# You may obtain a copy of the License at
67c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
77c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#      http://www.apache.org/licenses/LICENSE-2.0
87c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
97c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# Unless required by applicable law or agreed to in writing, software
107c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# distributed under the License is distributed on an "AS IS" BASIS,
117c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
127c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# See the License for the specific language governing permissions and
137c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# limitations under the License.
147c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
157c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru
167c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# If you don't need to do a full clean build but would like to touch
177c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# a file or delete some intermediate files, add a clean step to the end
187c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# of the list.  These steps will only be run once, if they haven't been
197c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# run before.
207c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
217c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# E.g.:
227c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#     $(call add-clean-step, touch -c external/sqlite/sqlite3.h)
237c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#     $(call add-clean-step, rm -rf $(PRODUCT_OUT)/obj/STATIC_LIBRARIES/libz_intermediates)
247c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
257c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# Always use "touch -c" and "rm -f" or "rm -rf" to gracefully deal with
267c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# files that are missing or have been moved.
277c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
287c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# Use $(PRODUCT_OUT) to get to the "out/target/product/blah/" directory.
297c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# Use $(OUT_DIR) to refer to the "out" directory.
307c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
317c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# If you need to re-do something that's already mentioned, just copy
327c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# the command and add it to the bottom of the list.  E.g., if a change
337c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# that you made last week required touching a file and a change you
347c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# made today requires touching the same file, just copy the old
357c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# touch step and add it to the end of the list.
367c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#
377c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# ************************************************
387c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
397c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# ************************************************
407c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru
417c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# For example:
427c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/AndroidTests_intermediates)
437c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/JAVA_LIBRARIES/core_intermediates)
447c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#$(call add-clean-step, find $(OUT_DIR) -type f -name "IGTalkSession*" -print0 | xargs -0 rm -f)
457c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru#$(call add-clean-step, rm -rf $(PRODUCT_OUT)/data/*)
467c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru
47b679332aebf4a5831ae018dc1e3553c208e67028Michael Jurka$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
4825913ca19866933cc0a0e1bdfe7b53b6850ebc00Michael Jurka$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
4963257c110a4ee54d5e8872c471cce254cf613c7aWinson Chung$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
50a93f6fc65899d460e092a7000c49b8a844ed1ee9Michael Jurka$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
5146fe42f76dca93ec9c4f2ef9f0b8a6de24852d16Michael Jurka$(call add-clean-step, rm -rf $(OUT_DIR)/target/common/obj/APPS/Launcher2_intermediates)
5246fe42f76dca93ec9c4f2ef9f0b8a6de24852d16Michael Jurka$(call add-clean-step, rm -rf $(PRODUCT_OUT)/system/app/Launcher2.apk)
53b679332aebf4a5831ae018dc1e3553c208e67028Michael Jurka
547c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# ************************************************
557c863d264745f3623a8f4eaa352a7f0b448724c3Jean-Baptiste Queru# NEWER CLEAN STEPS MUST BE AT THE END OF THE LIST
5663257c110a4ee54d5e8872c471cce254cf613c7aWinson Chung# ************************************************
57