Makefile (34069d12e239ae8f36dd96c378e4622fb1c42a76) | Makefile (58b33e78a31782ffe25d404d5eba9a45fe636e27) |
---|---|
1# SPDX-License-Identifier: GPL-2.0 2# Makefile for powerpc selftests 3 4# ARCH can be overridden by the user for cross compiling 5ARCH ?= $(shell uname -m) 6ARCH := $(shell echo $(ARCH) | sed -e s/ppc.*/powerpc/) 7 8ifeq ($(ARCH),powerpc) --- 45 unchanged lines hidden (view full) --- 54 55override define INSTALL_RULE 56 +@for TARGET in $(SUB_DIRS); do \ 57 BUILD_TARGET=$(OUTPUT)/$$TARGET; \ 58 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET install;\ 59 done; 60endef 61 | 1# SPDX-License-Identifier: GPL-2.0 2# Makefile for powerpc selftests 3 4# ARCH can be overridden by the user for cross compiling 5ARCH ?= $(shell uname -m) 6ARCH := $(shell echo $(ARCH) | sed -e s/ppc.*/powerpc/) 7 8ifeq ($(ARCH),powerpc) --- 45 unchanged lines hidden (view full) --- 54 55override define INSTALL_RULE 56 +@for TARGET in $(SUB_DIRS); do \ 57 BUILD_TARGET=$(OUTPUT)/$$TARGET; \ 58 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET install;\ 59 done; 60endef 61 |
62override define EMIT_TESTS | 62emit_tests: |
63 +@for TARGET in $(SUB_DIRS); do \ 64 BUILD_TARGET=$(OUTPUT)/$$TARGET; \ | 63 +@for TARGET in $(SUB_DIRS); do \ 64 BUILD_TARGET=$(OUTPUT)/$$TARGET; \ |
65 $(MAKE) OUTPUT=$$BUILD_TARGET -s -C $$TARGET emit_tests;\ | 65 $(MAKE) OUTPUT=$$BUILD_TARGET -s -C $$TARGET $@;\ |
66 done; | 66 done; |
67endef | |
68 69override define CLEAN 70 +@for TARGET in $(SUB_DIRS); do \ 71 BUILD_TARGET=$(OUTPUT)/$$TARGET; \ 72 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean; \ 73 done; 74 rm -f tags 75endef 76 77tags: 78 find . -name '*.c' -o -name '*.h' | xargs ctags 79 | 67 68override define CLEAN 69 +@for TARGET in $(SUB_DIRS); do \ 70 BUILD_TARGET=$(OUTPUT)/$$TARGET; \ 71 $(MAKE) OUTPUT=$$BUILD_TARGET -C $$TARGET clean; \ 72 done; 73 rm -f tags 74endef 75 76tags: 77 find . -name '*.c' -o -name '*.h' | xargs ctags 78 |
80.PHONY: tags $(SUB_DIRS) | 79.PHONY: tags $(SUB_DIRS) emit_tests |