Makefile (4a7126a25b4dfd07d61c699f724118275acc0c25) | Makefile (4e2648db9c5f7b2281551694597102612f54460d) |
---|---|
1# 2# linux/arch/arm/tools/Makefile 3# 4# Copyright (C) 2001 Russell King 5# 6 | 1# 2# linux/arch/arm/tools/Makefile 3# 4# Copyright (C) 2001 Russell King 5# 6 |
7gen := arch/$(ARCH)/include/generated 8kapi := $(gen)/asm 9 10kapi-hdrs-y := $(kapi)/mach-types.h 11 12targets += $(addprefix ../../../,$(kapi-hdrs-y)) 13 14PHONY += kapi 15 16kapi: $(kapi-hdrs-y) 17 18# Create output directory if not already present 19_dummy := $(shell [ -d '$(kapi)' ] || mkdir -p '$(kapi)') 20 |
|
7quiet_cmd_gen_mach = GEN $@ 8 cmd_gen_mach = mkdir -p $(dir $@) && \ 9 $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \ 10 { rm -f $@; /bin/false; } 11 | 21quiet_cmd_gen_mach = GEN $@ 22 cmd_gen_mach = mkdir -p $(dir $@) && \ 23 $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \ 24 { rm -f $@; /bin/false; } 25 |
12include/generated/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE | 26$(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE |
13 $(call if_changed,gen_mach) | 27 $(call if_changed,gen_mach) |