
# "@(#)Makefile 3.1 7/20/90 Jim Rudolf (Turing Institute)"
# $HNSRC/lib/Makefile

include ../Makefile.param

SUBDIRS = intf

all :
	$(SUBDIRSALL)
	@ if [ "$(PROLOGDIR)" != "" ]; then \
		echo "Making subdirectory prolog" ; \
		cd prolog ; $(MAKE) all ; \
	fi
	@ if [ "$(LISPDIR)" != "" ]; then \
		echo "Making subdirectory sunlisp" ; \
		cd sunlisp ; $(MAKE) all ; \
	fi


install :
	$(INSTALL) -d $(HNLIBDIR)
	$(SUBDIRSINSTALL)
	@ if [ "$(PROLOGDIR)" != "" ]; then \
		echo "Installing subdirectory prolog" ; \
		cd prolog ; $(MAKE) install ; \
	fi
	@ if [ "$(LISPDIR)" != "" ]; then \
		echo "Installing subdirectory sunlisp" ; \
		cd sunlisp ; $(MAKE) install ; \
	fi

clean :
	$(RM) $(TMPFILES)
	$(SUBDIRSCLEAN)
	@ if [ "$(PROLOGDIR)" != "" ]; then \
		echo "Cleaning subdirectory prolog" ; \
		cd prolog ; $(MAKE) clean ; \
	fi
	@ if [ "$(LISPDIR)" != "" ]; then \
		echo "Cleaning subdirectory sunlisp" ; \
		cd sunlisp ; $(MAKE) clean ; \
	fi
