added my responsibility for the `cpm' port
[unix-history] / sys / Makefile_sub.c
CommitLineData
68bcb3ab
RG
1/**/# From: /usr/src/sys/Makefile_sub.c V1.4 <stacey@guug.de>
2/**/# $Id$
3
4/**/# Do not edit Makefile_sub, (produced from Makefile_sub.c by Makefile).
5
6/**/# Copyright: Julian Stacey, Munich, October 1993,
7/**/# Free Software - No Liability Accepted.
8
9/**/# This Makefile_sub.c is not known as Makefile.c for 2 reasons:
10/**/# recursive make depend might zap Makefile
11/**/# general cleaning shells might also zap Makefile
12
13all:
14 @echo Subsidiary makefile has been erroneously called directly.
15 @echo It should only be called from Makefile.
16 exit 1
17 /usr/src/sys/impossible_command
18
19/**/# Next label recreates a compile tree if:
20/**/# - The config description file changes,
21/**/# for example if /sys/compile/GENERICAH/Makefile is older than
22/**/# /sys/i386/conf/GENERICAH, /sys/compile/GENERICAH/* is rebuilt.
23/**/# - Changes occur to i386/conf/Makefile.i386 devices.i386 files.i386.
24/**/# - A new source tree is imported. This might not be strictly necessary,
25/**/# If the Makefile know of Every dependency, but as the kernel
26/**/# evolves rapidly, it seems a harmless safety net.
27/**/# - Changes occur to Makefile or Makefile_sub.
28CONFIG_TREE_TEST: ${MACHINE}/conf/CONFIG_NAME \
29 ${MACHINE}/conf/Makefile.${MACHINE} \
30 ${MACHINE}/conf/devices.${MACHINE} \
31 ${MACHINE}/conf/files.${MACHINE} \
32 .config.import \
33 Makefile MAKEFILE_KERNEL
34/**/.if defined(DEBUG_SYS)
35 @echo -n Configuring a kernel compilation tree for CONFIG_NAME
36 @echo -n " as defined in "
37 @echo ${MACHINE}/conf/CONFIG_NAME.
38/**/.endif
39 cd ${MACHINE}/conf ; config CONFIG_NAME
40/**/# # If config fails, no error code is seen here unfortunately.
41/**/# # This was reccomended for flexfax, may not be necessary now:
42/**/# # -rm -f compile/CONFIG_NAME/fifo.h compile/CONFIG_NAME/\*.o
43/**/.if defined(LOAD_ADDRESS)
44 cd compile/CONFIG_NAME ; make LOAD_ADDRESS=${LOAD_ADDRESS} depend
45/**/.else
46 cd compile/CONFIG_NAME ; make depend
47/**/.endif
48
49/**/.config.import:
50 touch $@
51
52/**/# End of Makefile_sub.c