bootstrapping stuff
authorTom Yu <tlyu@mit.edu>
Thu, 26 May 1994 21:24:15 +0000 (21:24 +0000)
committerTom Yu <tlyu@mit.edu>
Thu, 26 May 1994 21:24:15 +0000 (21:24 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@3650 dc483132-0cff-0310-8789-dd5450dbe970

src/Makefile [new file with mode: 0644]
src/Makefile.ini [new file with mode: 0644]

diff --git a/src/Makefile b/src/Makefile
new file mode 100644 (file)
index 0000000..38ae642
--- /dev/null
@@ -0,0 +1,15 @@
+SHELL = /bin/sh
+MAKE = make
+FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
+
+all:
+       @echo Please use make World.
+       @echo Check the configuration parameters in the ./config/cf directory,
+       @echo and pass BOOTSTRAPCFLAGS if necessary.
+       @echo Read the release notes carefully before proceeding.
+       @echo Do not name your log file make.log or it will be deleted.
+       @echo If the top-level Makefile gets corrupted, copy Makefile.ini
+       @echo to Makefile and try again.
+
+world:
+       $(MAKE) $(FLAGS) world
diff --git a/src/Makefile.ini b/src/Makefile.ini
new file mode 100644 (file)
index 0000000..df0904b
--- /dev/null
@@ -0,0 +1,45 @@
+SHELL = /bin/sh
+RM = rm -f
+MV = mv
+MAKE = make
+WORLDOPTS = -k
+TOP = .
+CURRENT_DIR = .
+CONFIGSRC = $(TOP)/config
+IMAKESRC = $(CONFIGSRC)
+IRULESRC = $(CONFIGSRC)
+IMAKE = $(IMAKESRC)/imake
+IMAKE_CMD = $(IMAKE) -I$(IRULESRC) $(IMAKE_DEFINES)
+FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
+
+all:
+       @echo Please use make world.
+       @echo Check the configuration parameters in the $(IRULESRC) directory,
+       @echo and pass BOOTSTRAPCFLAGS if necessary.
+       @echo Read the release notes carefully before proceeding.
+       @echo Do not name your log file make.log or it will be deleted.
+       @echo If the top-level Makefile gets corrupted, copy Makefile.ini
+       @echo to Makefile and try again.
+
+world:
+       @case "x$(BOOTSTRAPCFLAGS)" in x) \
+       echo I hope you checked the configuration parameters in $(IRULESRC) ; \
+       echo to see if you need to pass BOOTSTRAPCFLAGS. ; \
+       echo "" ; \
+       ;; esac;
+       @date
+       @echo ""
+       cd $(IMAKESRC); $(MAKE) $(FLAGS) clean; $(MAKE) $(FLAGS)
+       -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
+       $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
+       $(MAKE) $(MFLAGS) mastermakefiles
+       $(MAKE) $(MFLAGS) includes
+       $(MAKE) $(MFLAGS) depend
+       $(MAKE) $(MFLAGS) $(WORLDOPTS)
+       @echo ""
+       @date
+
+Makefile:
+       cd $(IMAKESRC); $(MAKE) $(FLAGS)
+       -$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
+       $(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)