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 21quiet_cmd_gen_mach = GEN $@ 22 cmd_gen_mach = mkdir -p $(dir $@) && \ 23 $(AWK) -f $(filter-out $(PHONY),$^) > $@ || \ 24 { rm -f $@; /bin/false; } 25 26$(kapi)/mach-types.h: $(src)/gen-mach-types $(src)/mach-types FORCE 27 $(call if_changed,gen_mach) 28