diff -r 3a31ca4b29c4 -r b8fa7dfeeaa1 sbsv2/raptor/util/Makefile --- a/sbsv2/raptor/util/Makefile Wed Aug 04 12:07:55 2010 +0100 +++ b/sbsv2/raptor/util/Makefile Wed Oct 06 15:13:17 2010 +0100 @@ -1,5 +1,5 @@ -# Copyright (c) 2008-2009 Nokia Corporation and/or its subsidiary(-ies). +# Copyright (c) 2008-2010 Nokia Corporation and/or its subsidiary(-ies). # All rights reserved. # This component and the accompanying materials are made available # under the terms of the License "Eclipse Public License v1.0" @@ -17,8 +17,14 @@ SHELL:=bash +ifeq ($(CLEANMODE),) .PHONY:: all all:: +else +.PHONY:: clean +clean:: + +endif include utilbuild.mk # need general settings e.g. INSTALLROOT @@ -26,42 +32,23 @@ include gccprogram.mk -# Actual programs -include descramble/Makefile - -include talon/Makefile - -include ransleep/Makefile - -# Some tools not built for windows -ifneq ($(filter $(HOSTPLATFORM),win),win) -ifeq ($(CLEANMODE),) -include bash.mk - -include make.mk - -# Build pvm and pvmgmake later when they have been corrected -#include pvmgmake.mk - -#include pvm.mk - -include python.mk - -include codewarrior.mk - -include bvcpp.mk - -include gccxml.mk - -include dialog.mk +################################################# +ifeq ($(TARGETS),) + TARGETS:=descramble talon ransleep tmkdir + ifneq ($(filter $(HOSTPLATFORM),win),win) + # Some tools not built for windows + # Some of these don't support our special clean mode + TARGETS:=$(TARGETS) bash make python codewarrior bvcpp dialog + # Build pvm and pvmgmake later when they have been corrected + # pvmgmake pvm + endif endif -endif +$(foreach T,$(TARGETS),$(eval include $(T).mk)) else - clean: @echo "Cleaning" - make $(MAKEFILE) CLEANMODE:=1 | grep '' |sed -r 's#.*(.*).*#\1#' | (read F; while [ $$? -eq 0 ]; do rm -f "$$F"; read F; done; true ) + make $(MAKEFILE) CLEANMODE:=1 | grep '' |sed -r 's#.*(.*).*#\1#' | (read F; while [ $$? -eq 0 ]; do rm -f "$$F"; echo " [rm] $$F"; read F; done; true ) endif