2012-07-17 10:00:54 +02:00
|
|
|
###############################################################################
|
|
|
|
## @file clearvars.mk
|
2012-08-18 21:07:46 +02:00
|
|
|
## @author Edouard DUPIN
|
|
|
|
## @date 17-08-2012
|
|
|
|
## @project EWOL
|
2012-07-17 10:00:54 +02:00
|
|
|
##
|
|
|
|
## Clear out values of all variables used by rule templates.
|
|
|
|
###############################################################################
|
|
|
|
|
|
|
|
# Do NOT clear LOCAL_PATH, it is set BEFORE including this makefile
|
|
|
|
|
|
|
|
$(call clear-vars, $(filter-out LOCAL_PATH,$(modules-LOCALS:%=LOCAL_%)))
|
|
|
|
|
|
|
|
# Trim MAKEFILE_LIST so that $(call my-dir) doesn't need to
|
|
|
|
# iterate over thousands of entries every time.
|
|
|
|
# Leave the current makefile to make sure we don't break anything
|
|
|
|
# that expects to be able to find the name of the current makefile.
|
|
|
|
MAKEFILE_LIST := $(lastword $(MAKEFILE_LIST))
|