
all: nodeset nodels createnode listrange expandtree

pathnames.asd: pathnames/pathnames.asd
	ln -s pathnames/pathnames.asd pathnames.asd

cl-cli.asd: cl-cli/cl-cli.asd
	ln -s cl-cli/cl-cli.asd cl-cli.asd

asdfiles: pathnames.asd cl-cli.asd

nodeset: asdfiles nodeset.lisp config.lisp Build-Nodeset.lisp scatlib.lisp
	sbcl --load ./Build-Nodeset.lisp 

nodeset-GUI: asdfiles nodeset-GUI.lisp config.lisp Build-Nodeset.lisp scatlib.lisp
	sbcl --load ./Build-Nodeset-GUI.lisp 

nodels: asdfiles nodels.lisp config.lisp Build-Nodels.lisp scatlib.lisp
	  sbcl --load ./Build-Nodels.lisp 

listrange: asdfiles listrange.lisp config.lisp Build-Listrange.lisp scatlib.lisp
	  sbcl --load ./Build-Listrange.lisp 

createnode: asdfiles createnode.lisp config.lisp Build-Create_Node.lisp scatlib.lisp
	  sbcl --load ./Build-Create_Node.lisp 

expandtree: asdfiles listrange.lisp config.lisp Build-Listrange.lisp scatlib.lisp
	  sbcl --load ./Build-Expandtree.lisp 

install: nodeset nodels createnode listrange expandtree
	mkdir -p /opt/scat/bin/
	cp nodeset nodels createnode listrange expandtree /opt/scat/bin/
	mkdir -p /opt/scat/etc/
	cp etc/Scat.cfg /opt/scat/etc/

clean:
	rm -rf *~ *.fasl */*.fasl nodeset createnode nodels listrange expandtree
