| OLD | NEW |
| (Empty) |
| 1 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | |
| 2 # Use of this source code is governed by a BSD-style license that can be | |
| 3 # found in the LICENSE file. | |
| 4 | |
| 5 # | |
| 6 # GNU Make based build file. For details on GNU Make see: | |
| 7 # http://www.gnu.org/software/make/manual/make.html | |
| 8 # | |
| 9 | |
| 10 __PROJECT_LIST__ | |
| 11 | |
| 12 # Define the default target | |
| 13 all: | |
| 14 | |
| 15 CONFIG=debug | |
| 16 | |
| 17 # | |
| 18 # Target Macro | |
| 19 # | |
| 20 # Macro defines a phony target for each example, and adds it to a list of | |
| 21 # targets. | |
| 22 # | |
| 23 define TARGET | |
| 24 TARGET_LIST+=$(1)_TARGET | |
| 25 .PHONY: $(1)_TARGET | |
| 26 $(1)_TARGET: | |
| 27 +$(MAKE) BUILDTYPE=glibc-$(CONFIG) -C $(1) | |
| 28 +$(MAKE) BUILDTYPE=newlib-$(CONFIG) -C $(1) | |
| 29 +$(MAKE) BUILDTYPE=host-$(CONFIG) -C $(1) | |
| 30 | |
| 31 CLEAN_LIST+=$(1)_CLEAN | |
| 32 .PHONY: $(1)_CLEAN | |
| 33 $(1)_CLEAN: | |
| 34 +$(MAKE) -C $(1) clean | |
| 35 endef | |
| 36 | |
| 37 | |
| 38 # Define the various targets via the Macro | |
| 39 $(foreach proj,$(PROJECTS),$(eval $(call TARGET,$(proj)))) | |
| 40 | |
| 41 __DEPENDENCIES__ | |
| 42 | |
| 43 all: $(TARGET_LIST) | |
| 44 echo "Done building targets." | |
| 45 | |
| 46 clean: $(CLEAN_LIST) | |
| 47 echo "Done cleaning targets." | |
| 48 | |
| 49 RUN: all | |
| 50 echo "Staring up python webserver." | |
| 51 python httpd.py | |
| 52 | |
| OLD | NEW |