1 # hand-hacked Makefile to boot the "make world" process
2 #---------------------------------------------------------------------
4 # Platform-specific configuration stuff was read from: sun.cf
9 #******** NB: TOP setting
17 # Project identification -- name, version, and stuff
19 PROJECTNAME = Booting the Make World System
21 PROJECTLABEL = generic
26 ###########################################################################
27 # Configuration stuff (jmake, its friends and templates)
29 JMKMF = jmkmf_used_only_with_installed_utils
30 JRESTOREDEPS = $(JMAKESRC)/jrestoredeps
31 JMAKE = $(JMAKESRC)/jmake
34 JMAKESRC = $(TOP)/mkworld
36 JMAKE_CMD = $(NEWTOP)$(JMAKE) -I$(NEWTOP)$(JMAKESRC) $(BOOTSTRAPCFLAGS) -DTopDir=$(TOP) -DCurDir=$(CURRENT_DIR) $(BOOT_DEFINES)
38 ###########################################################################
43 @(cd $(JMAKESRC) && if [ -f Makefile ]; then \
44 echo "checking $@ in $(JMAKESRC) first..."; $(MAKE) all; else \
45 echo "bootstrapping $@ from Makefile.BOOT in $(JMAKESRC) first..."; \
46 $(MAKE) -f Makefile.BOOT BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \
47 echo "okay, continuing in $(CURRENT_DIR)")
50 -@if [ -f Makefile ]; then \
51 echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
52 $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
56 @if cmp -s Makefile Makefile.bak; then $(RM) Makefile.bak ; else exit 0 ; fi
58 @echo ==== The new Makefile is for\: ====