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