blob: 567516b58acca40ff99ada5fd9bd1bd100b91496 [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#
2# arch/sh/tools/Makefile
3#
4# Copyright (C) 2003 Paul Mundt
5#
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
8# for more details.
9#
10# Shamelessly cloned from ARM.
11#
12
Paul Mundt4385e122008-08-02 07:14:09 +090013include/asm-sh/machtypes.h: $(src)/gen-mach-types $(src)/mach-types
Linus Torvalds1da177e2005-04-16 15:20:36 -070014 @echo ' Generating $@'
Paul Mundt4385e122008-08-02 07:14:09 +090015 $(Q)if [ ! -d include/asm-sh ]; then mkdir -p include/asm-sh; fi
Linus Torvalds1da177e2005-04-16 15:20:36 -070016 $(Q)$(AWK) -f $^ > $@ || { rm -f $@; /bin/false; }