xref: /original-bsd/local/X11R5/mit/Makefile.ini (revision 75b43ae6)
1       SHELL = /bin/sh
2          RM = rm -f
3          MV = mv
4        MAKE = make
5         TOP = .
6 CURRENT_DIR = .
7   CONFIGSRC = $(TOP)/config
8    IMAKESRC = $(CONFIGSRC)
9    IRULESRC = $(CONFIGSRC)
10       IMAKE = $(IMAKESRC)/imake
11   IMAKE_CMD = $(NEWTOP)$(IMAKE) -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)
12#   IMAKE_CMD = /usr/X11/bin/imake -I$(NEWTOP)$(IRULESRC) $(IMAKE_DEFINES)
13       FLAGS = $(MFLAGS) -f Makefile.ini BOOTSTRAPCFLAGS="$(BOOTSTRAPCFLAGS)"
14
15all:
16	@echo "Please use make World, and set BOOTSTRAPCFLAGS if necessary."
17	@echo "Do not name your log file make.log or it will be deleted."
18	@echo "Check the configuration parameters in the config directory,
19	@echo "and read the release notes carefully before proceeding."
20	@echo "If the top-level Makefile gets corrupted, copy Makefile.ini
21	@echo "to Makefile and try again."
22
23World:
24	@echo ""
25	@echo "Building Release 5 of the X Window System"
26	@echo ""
27	@echo "##############################################################"
28	@echo "# Did you remember to check the configuration parameters in  #"
29	@echo "# the directory ./config and set BOOTSTRAPCFLAGS if needed?  #"
30	@echo "##############################################################"
31	@echo ""
32	@date
33	@echo ""
34	cd $(IMAKESRC); $(MAKE) $(FLAGS) clean; $(MAKE) $(FLAGS)
35	cd $(IMAKESRC); rm imake; ln -s /usr/X11/bin/imake imake
36	-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
37	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
38	$(MAKE) $(MFLAGS) Makefiles
39	$(MAKE) $(MFLAGS) clean
40	$(MAKE) $(MFLAGS) includes
41	$(MAKE) $(MFLAGS) depend
42	$(MAKE) $(MFLAGS) $(WORLDOPTS)
43	@echo ""
44	@date
45	@echo ""
46	@echo "Full build of Release 5 of the X Window System complete."
47	@echo ""
48
49Makefile:
50	cd $(IMAKESRC); $(MAKE) $(FLAGS)
51	-$(RM) Makefile.bak; $(MV) Makefile Makefile.bak
52	$(IMAKE_CMD) -DTOPDIR=$(TOP) -DCURDIR=$(CURRENT_DIR)
53