sbsv2/raptor/util/Makefile
author Richard Taylor <richard.i.taylor@nokia.com>
Thu, 12 Aug 2010 09:00:16 +0100
changeset 625 a1925fb7753a
parent 590 360bd6b35136
child 643 27cf35f95864
permissions -rw-r--r--
sbs version 2.15.0


# 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