diff options
author | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
---|---|---|
committer | Norbert Preining <norbert@preining.info> | 2019-09-02 13:46:59 +0900 |
commit | e0c6872cf40896c7be36b11dcc744620f10adf1d (patch) | |
tree | 60335e10d2f4354b0674ec22d7b53f0f8abee672 /web/glasgow/lit2x-0.16/grasp-utils/Makefile.BOOT |
Initial commit
Diffstat (limited to 'web/glasgow/lit2x-0.16/grasp-utils/Makefile.BOOT')
-rw-r--r-- | web/glasgow/lit2x-0.16/grasp-utils/Makefile.BOOT | 58 |
1 files changed, 58 insertions, 0 deletions
diff --git a/web/glasgow/lit2x-0.16/grasp-utils/Makefile.BOOT b/web/glasgow/lit2x-0.16/grasp-utils/Makefile.BOOT new file mode 100644 index 0000000000..16179c7df1 --- /dev/null +++ b/web/glasgow/lit2x-0.16/grasp-utils/Makefile.BOOT @@ -0,0 +1,58 @@ +# hand-hacked Makefile to boot the "make world" process +#--------------------------------------------------------------------- + +# Platform-specific configuration stuff was read from: sun.cf + +SHELL = /bin/sh +PATHSEP = / + +TOP = .. +CURRENT_DIR = ./grasp-utils + +RM=rm -f +MV=mv -f +BOOTSTRAPCFLAGS = + +# Project identification -- name, version, and stuff + +PROJECTNAME = Booting the Make World System +PROJECTVERSION = none +PROJECTLABEL = none +SETUPLABEL = std + +PROJECTCONFIGDIR = + +########################################################################### +# Configuration stuff (jmake, its friends and templates) + +JMKMF = jmkmf_used_only_with_installed_utils +JRESTOREDEPS = $(JMAKESRC)/jrestoredeps +JMAKE = $(JMAKESRC)/jmake +JMAKE_DEFINES = + +JMAKESRC = $(TOP)/mkworld + +JMAKE_CMD = $(NEWTOP)$(JMAKE) -I$(NEWTOP)$(JMAKESRC) $(BOOTSTRAPCFLAGS) -DTopDir=$(TOP) -DCurDir=$(CURRENT_DIR) $(BOOT_DEFINES) + +########################################################################### + +Makefile:: $(JMAKE) + +$(JMAKE): + @(cd $(JMAKESRC); if [ -f Makefile ]; then \ + echo "checking $@ in $(JMAKESRC) first..."; $(MAKE) all; else \ + echo "bootstrapping $@ from Makefile.BOOT in $(JMAKESRC) first..."; \ + $(MAKE) -f Makefile.BOOT BOOTSTRAPCFLAGS=$(BOOTSTRAPCFLAGS); fi; \ + echo "okay, continuing in $(CURRENT_DIR)") + +Makefile:: + -@if [ -f Makefile ]; then \ + echo " $(RM) Makefile.bak; $(MV) Makefile Makefile.bak"; \ + $(RM) Makefile.bak; $(MV) Makefile Makefile.bak; \ + else exit 0; fi + $(JMAKE_CMD) + $(JRESTOREDEPS) + @if cmp -s Makefile Makefile.bak; then $(RM) Makefile.bak ; fi + @chmod 444 Makefile + @echo ==== The new Makefile is for\: ==== + @$(MAKE) whoami |