##############################################################################
# FILE IDENTIFICATION
# 
#  Name:         Makefile
#  Purpose:      Makefile for the vcs-tree, creates binary executable
#  Author:       Kevin M. Rosenberg
#  Date Started: Sep 2003
#
#  $Id: Makefile 11330 2006-12-05 15:04:24Z kevin $
##############################################################################


pkg	:=vcs-tree
sources	:=$(pkg).asd $(wildcard *.lisp)

_$(pkg): $(sources)
	$(MAKE) clean
	HOME=/ /usr/bin/sbcl --sysinit /dev/null --userinit /dev/null --eval "(require 'asdf)" --load vcs-tree.asd --eval "(asdf:operate 'asdf::load-op 'vcs-tree)" --eval "(vcs-tree-system:save-executable \"_vcs-tree\")" --eval "(sb-ext:quit :unix-status 0)"

clean:
	rm -f *.fasl _$(pkg)
