include ${SEPINC}/SEP.top

URL    = sepwww.stanford.edu/sep/matt/sdi
WWWDIR = /sepwww/pub/sep/matt/make/Web

SCRDIR = /scrka1/matt
SRCDIR = /sepwww/pub/sep/matt/make

GZIP = gzip -f 

.IGNORE: ; 

prepare : 
	@echo "Let's make the software palatable ..."
	@echo "Let's make some space ..."
	if [ -d ${SCRDIR} ]; then /bin/rm -rf ${SCRDIR}; fi; mkdir ${SCRDIR};
	if [ -d ${WWWDIR} ]; then /bin/rm -rf ${WWWDIR}; fi; mkdir ${WWWDIR};
	@echo "Let's create our own work space and clean it ... "
	mkdir             ${SCRDIR}/make 
	cp -R ${SRCDIR}/* ${SCRDIR}/make 
	cd    ${SCRDIR}/sdi          ; find . -name '[A-Z]*' \( ! -name Fig \) \( ! -name Data \)  -type d -exec /bin/rm -rf {} ';'

tar :
	@echo "Let's tar all of make"
	cd    ${SCRDIR}               ; tar -cvf    make.tar   ./make 
	cd    ${SCRDIR}               ; ${GZIP}     make.tar 

install:
	@echo "Let's copy all gzipped files"
	cp    ${SCRDIR}/*.gz ${WWWDIR} 

clean : jclean

include ${SEPINC}/SEP.bottom


