sbsv2/raptor/util/Makefile
author Jon Chatten
Mon, 13 Sep 2010 14:04:04 +0100
changeset 641 8dd670a9f34f
parent 625 a1925fb7753a
child 643 27cf35f95864
permissions -rw-r--r--
sbs version 2.15.2


# Copyright (c) 2008-2009 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"
# which accompanies this distribution, and is available
# at the URL "http://www.eclipse.org/legal/epl-v10.html".
#
# Initial Contributors:
# Nokia Corporation - initial contribution.
#
# Contributors:
#
# Description:
##


SHELL:=bash

ifeq ($(CLEANMODE),)
.PHONY:: all
all::
else
.PHONY:: clean
clean::

endif

include utilbuild.mk # need general settings e.g. INSTALLROOT

ifeq ($(filter CLEAN,$(MAKECMDGOALS))$(filter clean,$(MAKECMDGOALS)),)

include gccprogram.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 gccxml dialog
    #  Build pvm and pvmgmake later when they have been corrected
    # pvmgmake  pvm
  endif
endif

$(foreach T,$(TARGETS),$(eval include $(T).mk))

else

clean:
	@echo "Cleaning"
	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 )
endif