2 # arch/sh/tools/Makefile
4 # Copyright (C) 2003 Paul Mundt
6 # This file is subject to the terms and conditions of the GNU General Public
7 # License. See the file "COPYING" in the main directory of this archive
10 # Shamelessly cloned from ARM.
13 include/asm-sh
/machtypes.h
: $(src
)/gen-mach-types
$(src
)/mach-types
14 @echo
' Generating $@'
15 $(Q
)if
[ ! -d
include/asm-sh
]; then mkdir
-p
include/asm-sh
; fi
16 $(Q
)$(AWK
) -f
$^
> $@ ||
{ rm -f
$@
; /bin
/false
; }