wsh/
wsh/binsrc/
wsh/docs/help/
wsh/docs/old/
wsh/etc/
wsh/src/util/
#
# This is the main makefile for the WizPort
# Make wsh first (in src/) and then come back to here
# please read allthe documentation (in docs/) before doing any of this.
#
#    David Ljung Madison
#

SOURCE = wizshell.c login.c access.c catch.c
OBJS = $(SOURCE:.c=.o)
BINS = ls rm mv cp

all:	wsh tcpserv bin help

wsh:
	@echo ""
	@echo "wsh does not exist yet.  You need to compile this first"
	@echo "then move src/wsh and src/boot to this directory"
	@echo "(look at src/Makefile, src/config.h and docs/2.INSTALL)"
	@echo ""
	@false       # just kill it here

tcpserv:
	@echo "Building tcpserv:"
	@cd src/tcp-s; ./Configure; make tcpserv
	@rm -f src/tcp-s/*.o src/tcp-s/Makefile
	@mv src/tcp-s/tcpserv .
	@strip tcpserv
	@# might as well do it here :)
	@strip wsh

# if ls isn't there, build the whole thing
bin:
	@echo "Building bin/"
	@# couldn't write this in damn /bin/sh, so I made another file
	@csh -c binsrc/mkbin
	@cp -f binsrc/help bin/help
	@echo ""

help:
	@echo ""
	@echo "Make sure to put the docs/help/ files in HELP_DIR"
	@echo "as defined in src/Makefile"
	@echo ""
	@echo "Installation complete"
	@echo ""