Makefile 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. # Copyright (c) 2008-2011 Nokia Corporation and/or its subsidiary(-ies).
  2. # All rights reserved.
  3. # This component and the accompanying materials are made available
  4. # under the terms of the License "Eclipse Public License v1.0"
  5. # which accompanies this distribution, and is available
  6. # at the URL "http://www.eclipse.org/legal/epl-v10.html".
  7. #
  8. # Initial Contributors:
  9. # Nokia Corporation - initial contribution.
  10. #
  11. # Contributors:
  12. #
  13. # Description:
  14. ##
  15. SHELL:=bash
  16. ifeq ($(CLEANMODE),)
  17. .PHONY:: all
  18. all::
  19. else
  20. .PHONY:: clean
  21. clean::
  22. endif
  23. include utilbuild.mk # need general settings e.g. INSTALLROOT
  24. ifeq ($(filter CLEAN,$(MAKECMDGOALS))$(filter clean,$(MAKECMDGOALS)),)
  25. include gccprogram.mk
  26. #################################################
  27. ifeq ($(TARGETS),)
  28. TARGETS:=descramble talon ransleep tmkdir simmer
  29. ifneq ($(filter $(HOSTPLATFORM),win),win)
  30. # Some tools not built for windows
  31. # Some of these don't support our special clean mode
  32. TARGETS:=$(TARGETS) make python27 bvcpp dialog
  33. TARGETS:=$(TARGETS) python32
  34. endif
  35. ifneq ($(filter $(HOSTPLATFORM),win),)
  36. TARGETS:=$(TARGETS) sbs
  37. endif
  38. endif
  39. $(foreach T,$(TARGETS),$(eval -include $(T).mk))
  40. else
  41. clean:
  42. @echo "Cleaning"
  43. $(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 )
  44. endif