OLD | NEW |
1 ## | 1 ## |
2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. | 2 ## Copyright (c) 2010 The WebM project authors. All Rights Reserved. |
3 ## | 3 ## |
4 ## Use of this source code is governed by a BSD-style license | 4 ## Use of this source code is governed by a BSD-style license |
5 ## that can be found in the LICENSE file in the root of the source | 5 ## that can be found in the LICENSE file in the root of the source |
6 ## tree. An additional intellectual property rights grant can be found | 6 ## tree. An additional intellectual property rights grant can be found |
7 ## in the file PATENTS. All contributing project authors may | 7 ## in the file PATENTS. All contributing project authors may |
8 ## be found in the AUTHORS file in the root of the source tree. | 8 ## be found in the AUTHORS file in the root of the source tree. |
9 ## | 9 ## |
10 | 10 |
11 | 11 |
12 include config.mk | 12 include config.mk |
13 quiet?=true | 13 quiet?=true |
14 ifeq ($(target),) | 14 ifeq ($(target),) |
15 # If a target wasn't specified, invoke for all enabled targets. | 15 # If a target wasn't specified, invoke for all enabled targets. |
16 .DEFAULT: | 16 .DEFAULT: |
17 @for t in $(ALL_TARGETS); do \ | 17 @for t in $(ALL_TARGETS); do \ |
18 $(MAKE) --no-print-directory target=$$t $(MAKECMDGOALS) || exit $$?
;\ | 18 $(MAKE) --no-print-directory target=$$t $(MAKECMDGOALS) || exit $$?
;\ |
19 done | 19 done |
20 all: .DEFAULT | 20 all: .DEFAULT |
21 clean:: .DEFAULT | 21 clean:: .DEFAULT |
| 22 exampletest: .DEFAULT |
22 install:: .DEFAULT | 23 install:: .DEFAULT |
23 test:: .DEFAULT | 24 test:: .DEFAULT |
24 testdata:: .DEFAULT | 25 testdata:: .DEFAULT |
25 utiltest: .DEFAULT | 26 utiltest: .DEFAULT |
26 | 27 |
27 | 28 |
28 # Note: md5sum is not installed on OS X, but openssl is. Openssl may not be | 29 # Note: md5sum is not installed on OS X, but openssl is. Openssl may not be |
29 # installed on cygwin, so we need to autodetect here. | 30 # installed on cygwin, so we need to autodetect here. |
30 md5sum := $(firstword $(wildcard \ | 31 md5sum := $(firstword $(wildcard \ |
31 $(foreach e,md5sum openssl,\ | 32 $(foreach e,md5sum openssl,\ |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 if [ -z "$(target)" ]; then \ | 99 if [ -z "$(target)" ]; then \ |
99 rm -f Makefile; \ | 100 rm -f Makefile; \ |
100 rm -f config.log config.mk; \ | 101 rm -f config.log config.mk; \ |
101 rm -f vpx_config.[hc] vpx_config.asm; \ | 102 rm -f vpx_config.[hc] vpx_config.asm; \ |
102 else \ | 103 else \ |
103 rm -f $(target)-$(TOOLCHAIN).mk; \ | 104 rm -f $(target)-$(TOOLCHAIN).mk; \ |
104 fi | 105 fi |
105 | 106 |
106 .PHONY: dist | 107 .PHONY: dist |
107 dist: | 108 dist: |
| 109 .PHONY: exampletest |
| 110 exampletest: |
108 .PHONY: install | 111 .PHONY: install |
109 install:: | 112 install:: |
110 .PHONY: test | 113 .PHONY: test |
111 test:: | 114 test:: |
112 .PHONY: testdata | 115 .PHONY: testdata |
113 testdata:: | 116 testdata:: |
114 .PHONY: utiltest | 117 .PHONY: utiltest |
115 utiltest: | 118 utiltest: |
116 | 119 |
117 # Add compiler flags for intrinsic files | 120 # Add compiler flags for intrinsic files |
(...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
320 $(qexec)lipo -output $$@ -create $$? | 323 $(qexec)lipo -output $$@ -create $$? |
321 endef | 324 endef |
322 | 325 |
323 | 326 |
324 # | 327 # |
325 # Get current configuration | 328 # Get current configuration |
326 # | 329 # |
327 ifneq ($(target),) | 330 ifneq ($(target),) |
328 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk | 331 include $(SRC_PATH_BARE)/$(target:-$(TOOLCHAIN)=).mk |
329 endif | 332 endif |
330 ifeq ($(filter %clean,$(MAKECMDGOALS)),) | 333 |
| 334 skip_deps := $(filter %clean,$(MAKECMDGOALS)) |
| 335 skip_deps += $(findstring testdata,$(MAKECMDGOALS)) |
| 336 ifeq ($(strip $(skip_deps)),) |
331 # Older versions of make don't like -include directives with no arguments | 337 # Older versions of make don't like -include directives with no arguments |
332 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) | 338 ifneq ($(filter %.d,$(OBJS-yes:.o=.d)),) |
333 -include $(filter %.d,$(OBJS-yes:.o=.d)) | 339 -include $(filter %.d,$(OBJS-yes:.o=.d)) |
334 endif | 340 endif |
335 endif | 341 endif |
336 | 342 |
337 # | 343 # |
338 # Configuration dependent rules | 344 # Configuration dependent rules |
339 # | 345 # |
340 $(call pairmap,install_map_templates,$(INSTALL_MAPS)) | 346 $(call pairmap,install_map_templates,$(INSTALL_MAPS)) |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
436 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) | 442 ifeq ($(CONFIG_EXTERNAL_BUILD),yes) |
437 BUILD_TARGETS += .projects | 443 BUILD_TARGETS += .projects |
438 INSTALL_TARGETS += .install-projects | 444 INSTALL_TARGETS += .install-projects |
439 endif | 445 endif |
440 BUILD_TARGETS += .docs .libs .bins | 446 BUILD_TARGETS += .docs .libs .bins |
441 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins | 447 INSTALL_TARGETS += .install-docs .install-srcs .install-libs .install-bins |
442 all: $(BUILD_TARGETS) | 448 all: $(BUILD_TARGETS) |
443 install:: $(INSTALL_TARGETS) | 449 install:: $(INSTALL_TARGETS) |
444 dist: $(INSTALL_TARGETS) | 450 dist: $(INSTALL_TARGETS) |
445 test:: | 451 test:: |
OLD | NEW |