# Copyright (c) Stichting Mathematisch Centrum, Amsterdam, 1984, 1985.
# bootstrap Mark 1 implementation of B.
# for public installation, e.g. outside the B root directory (make install):
# public place for 'b' command
# public place for 'b.1' manual
# public place for 'bterminal.5' manual
# public place for auxiliary files needed by 'b'
# BINT determines B interpreter used
# put everything in ./bin and ./lib:
cd src/$(BINT); make install
cd src/libbed; make install
@echo "If all went well, try the B editor in ./ex/try."
# install everything in public places:
install: $(BDIR) $(MAN1DIR) $(MAN5DIR) $(LIBDIR)
cd src/b; make BDEST=$(BDIR) LDEST=$(LIBDIR) install
cd src/bed; make DEST=$(LIBDIR) install
cd src/$(BINT); make DEST=$(LIBDIR) install
cd src/libbed; make DEST=$(LIBDIR) install
cd man; make DEST1=$(MAN1DIR) DEST5=$(MAN5DIR) install
@ch_install "$(BINT)" "$(BDIR)" "$(MAN1DIR)" "$(MAN5DIR)" "$(LIBDIR)"
cd src/$(BINT); make clean
cd src/libtermcap; make clean
@echo "To print the source; see ./src"
@echo "To print the manual pages; see ./man"
@echo "To print the documents; see ./doc"