98 $(PHASEINFO) |
98 $(PHASEINFO) |
99 $(MAKE) -f subsystem.mk TARGET_PHASE=clean_configure subtargets |
99 $(MAKE) -f subsystem.mk TARGET_PHASE=clean_configure subtargets |
100 $(call RMFILES,$(COMPONENT_NAME).pro) |
100 $(call RMFILES,$(COMPONENT_NAME).pro) |
101 |
101 |
102 |
102 |
|
103 # If REMOVE_NOTBUILT_EXCLUDING is defined, the remove_notbuilt removes all subdirectories |
|
104 # not participating in the built, except the ones listed |
|
105 DEFAULT_EXCLUDES = inc tsrc |
|
106 DIRECTORIES = $(foreach d,$(wildcard *),$(if $(wildcard $(d)/*),$(d),)) |
|
107 BUILTDIRECTORIES = $(foreach t,$(REALTARGETS),$(firstword $(subst /, ,$(t)))) |
|
108 REMOVEDIRECORIES = $(filter-out $(REMOVE_NOTBUILT_EXCLUDING) $(DEFAULT_EXCLUDES) $(BUILTDIRECTORIES),$(DIRECTORIES)) |
|
109 remove_notbuilt: |
|
110 ifdef REMOVE_NOTBUILT_EXCLUDING |
|
111 ifdef SIMULATE |
|
112 echo Remove not-built directories at $(CURDIR): $(REMOVEDIRECORIES) |
|
113 else |
|
114 ifneq ($(REMOVEDIRECORIES),) |
|
115 echo Removing not-built directories at $(CURDIR): $(REMOVEDIRECORIES) \ |
|
116 $(foreach d,$(REMOVEDIRECORIES),&& $(call DELTREE,$(d))) |
|
117 endif |
|
118 endif |
|
119 endif |
|
120 $(MAKE) -f subsystem.mk TARGET_PHASE=$@ subtargets |
|
121 |
|
122 |
103 # Symbian ---------------------------------- |
123 # Symbian ---------------------------------- |
104 ifeq ($(BUILDENV),symbian) |
124 ifeq ($(BUILDENV),symbian) |
105 |
125 |
106 ifeq ($(COMPONENT_NAME),jrt) |
126 ifeq ($(COMPONENT_NAME),jrt) |
107 # When building from top level, the native compilation does also export, java and finalactions |
127 # When building from top level, the native compilation does also export, java and finalactions |