# Makefile for spmodel library

all:
	cd src; $(MAKE)
	cd spmfrt; $(MAKE) $@

install: all
	cd src; $(MAKE) $@
	cd spmfrt; $(MAKE) $@

html:
	cd doc; $(MAKE)
	cd doc; $(MAKE) install

clean: clean.local
	cd src; $(MAKE) $@
	cd spmfrt; $(MAKE) $@
	cd demo; $(MAKE) $@
	cd test; $(MAKE) $@
	cd doc; $(MAKE) $@
	cd supplemental; $(MAKE) $@

clean.local:
	-rm *.bak *~

distclean: clean
	-rm -r html
	-rm -f config.status chkfort.cfg config.cache config.log Config.mk
	@echo removing Config.mk, you should rerun configure to build spmodel libary.
