1 # hand-hacked Makefile to boot the "make world" process
2 #---------------------------------------------------------------------
4 # Platform-specific configuration stuff was read from: sun.cf
10 CURRENT_DIR = ./glafp-utils
16 # Project identification -- name, version, and stuff
18 PROJECTNAME = Booting the Make World System
25 ###########################################################################
26 # Configuration stuff (jmake, its friends and templates)
28 JMKMF = jmkmf_used_only_with_installed_utils
29 JRESTOREDEPS = $(JMAKESRC)/jrestoredeps
30 JMAKE = $(JMAKESRC)/jmake
33 JMAKESRC = $(TOP)/mkworld
35 JMAKE_CMD = $(NEWTOP)$(JMAKE) -I$(NEWTOP)$(JMAKESRC) $(BOOTSTRAPCFLAGS) -DTopDir=$(TOP) -DCurDir=$(CURRENT_DIR) $(BOOT_DEFINES)
37 ###########################################################################
42 @(cd $(JMAKESRC) && if [ -f Makefile ]; then \
43 echo "checking $@ in $(JMAKESRC) first..."; $(MAKE) all; else \
44 echo "bootstrapping $@ from Makefile.BOOT in $(JMAKESRC) first..."; \
45 $(MAKE) -f Makefile.BOOT BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \
46 echo "okay, continuing in $(CURRENT_DIR)")
49 -@if [ -f Makefile ]; then \
50 echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \
51 $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \
55 @if cmp -s Makefile Makefile.bak; then $(RM) Makefile.bak ; else exit 0 ; fi
57 @echo ==== The new Makefile is for\: ====