##  Copyright 1995, Richard M. Troth, all rights reserved.  <plaintext> 
# 
#	  Name: .../posixuft/makefile 
#		top-level makefile for POSIX UFT 
#	  Date: 1995-Jan-27, Feb-08, Oct-05 
# 
 
BASE_URL = http://casita.houston.tx.us/~troth/software
# SENDBACK = troth@casita.houston.tx.us
SENDBACK = troth@ua1vm.ua.edu
PLATFORM = `./platform`
 
all:		makefile 
		(cd src; ./configure) 
		(cd src; make) 
		mv src/uftd src/sf src/maketext src/cpq . 
 
install:	all 
		strip sf uftd maketext cpq 
		mv uftd /usr/local/etc/. 
		mv sf cpq /usr/local/bin/. 
		cp -p bin/rls bin/rcv bin/rfile /usr/local/bin/. 
		mv maketext /usr/local/lib/. 
 
docs: 
		./makedocs 
 
dist:		clean 
		./makedist 
 
sendback:	all 
		mkdir $(PLATFORM) 
		(cd $(PLATFORM); mkdir bin etc lib) 
		(cd $(PLATFORM)/bin; ln -s ../../bin/* .) 
		strip sf uftd maketext cpq 
		mv uftd $(PLATFORM)/etc/. 
		mv maketext $(PLATFORM)/lib/. 
		mv sf cpq $(PLATFORM)/bin/. 
		tar cvf - $(PLATFORM) | compress - | \
	$(PLATFORM)/bin/sf -i -n uftZpack.$(PLATFORM) - $(SENDBACK) 
 
clean: 
		rm -f core a.out *.o *.a *.lst CEEDUMP.* \
			uftd sf maketext cpq cpqu uftcmime 
		- (cd src; make clean) 
 
distclean: 
		rm -f core a.out *.o *.a *.lst CEEDUMP.* \
			uftd sf maketext cpq cpqu uftcmime 
		- (cd src; make distclean) 
 
refresh:	clean 
		rm -f posixuft 
		ln -s . posixuft 
#		webcat -i $(BASE_URL)/posixuft.tar | tar xvf - 
		webcat -i $(BASE_URL)/posixuft.taz | zcat | tar xvf - 
 

