13
|
1 |
|
28
|
2 |
# Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies).
|
13
|
3 |
# All rights reserved.
|
|
4 |
# This component and the accompanying materials are made available
|
|
5 |
# under the terms of the License "Eclipse Public License v1.0"
|
|
6 |
# which accompanies this distribution, and is available
|
|
7 |
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
|
|
8 |
#
|
|
9 |
# Initial Contributors:
|
|
10 |
# Nokia Corporation - initial contribution.
|
|
11 |
#
|
|
12 |
# Contributors:
|
|
13 |
#
|
|
14 |
# Description:
|
|
15 |
##
|
|
16 |
|
|
17 |
|
|
18 |
SHELL:=bash
|
|
19 |
|
28
|
20 |
ifeq ($(CLEANMODE),)
|
13
|
21 |
.PHONY:: all
|
|
22 |
all::
|
28
|
23 |
else
|
|
24 |
.PHONY:: clean
|
|
25 |
clean::
|
|
26 |
|
|
27 |
endif
|
13
|
28 |
|
|
29 |
include utilbuild.mk # need general settings e.g. INSTALLROOT
|
|
30 |
|
|
31 |
ifeq ($(filter CLEAN,$(MAKECMDGOALS))$(filter clean,$(MAKECMDGOALS)),)
|
|
32 |
|
|
33 |
include gccprogram.mk
|
|
34 |
|
28
|
35 |
#################################################
|
|
36 |
ifeq ($(TARGETS),)
|
|
37 |
TARGETS:=descramble talon ransleep tmkdir
|
|
38 |
ifneq ($(filter $(HOSTPLATFORM),win),win)
|
|
39 |
# Some tools not built for windows
|
|
40 |
# Some of these don't support our special clean mode
|
|
41 |
TARGETS:=$(TARGETS) bash make python codewarrior bvcpp dialog
|
|
42 |
# Build pvm and pvmgmake later when they have been corrected
|
|
43 |
# pvmgmake pvm
|
|
44 |
endif
|
13
|
45 |
endif
|
|
46 |
|
28
|
47 |
$(foreach T,$(TARGETS),$(eval include $(T).mk))
|
13
|
48 |
|
|
49 |
else
|
|
50 |
|
|
51 |
clean:
|
|
52 |
@echo "Cleaning"
|
28
|
53 |
make $(MAKEFILE) CLEANMODE:=1 | grep '<file>' |sed -r 's#.*<file>(.*)</file>.*#\1#' | (read F; while [ $$? -eq 0 ]; do rm -f "$$F"; echo " [rm] $$F"; read F; done; true )
|
13
|
54 |
endif
|