more changes on original files
[linux-2.4.git] / arch / mips / tools / Makefile
1 # Makefile for MIPS kernel build tools.
2 #
3 # Copyright (C) 1996 David S. Miller (dm@engr.sgi.com)
4 # Copyright (C) 1997 Ralf Baechle (ralf@gnu.ai.mit.edu)
5 #
6 TARGET  := $(TOPDIR)/include/asm-$(ARCH)/offset.h
7
8 USE_STANDARD_AS_RULE := true
9
10 $(TARGET): offset.h
11         cmp -s $^ $@ || (cp $^ $(TARGET).new && mv $(TARGET).new $(TARGET))
12
13 offset.h: offset.s
14         sed -n '/^@@@/s///p' $^ >$@
15
16 offset.s: offset.c $(TOPDIR)/include/linux/autoconf.h
17
18 clean:
19         rm -f offset.[hs] $(TARGET).new
20
21 mrproper: clean
22         rm -f $(TARGET)
23
24 include $(TOPDIR)/Rules.make