# Do not edit this file!
# It is autogenerated by "makeconfig" and will be overwritten next time!
# If you want to change some values, so do it in "makeconfig".

all: develop/config.cache .
	cd src; make

install: develop/config.cache .
	sh develop/install 

config: 
	sh ./makeconfig

develop/config.cache: makeconfig
	sh ./makeconfig
	
clean:
	rm -f *~ */*~ sendfile-*tar.gz sendfile*zip 
	makeconfig clean
	cd contrib/xhoppel; make clean
	cd develop; rm -f config.cache config.log
	cd src; make clean
	
wc:
	@cd src; wc -cl \\
	  sendfile.c sendfiled.c sendmsg.c receive.c utf7encode.c \\
	  string.[ch] utf7.[ch] pstring.[ch] message.[ch] peername.[ch] \\
	  io.[ch] net.[ch] address.[ch] spool.[ch] reply.[ch] \\
	  getdate.c snprintf.c bsd.h ../install ../makeconfig \\
	  ../etc/check_sendfile ../etc/sf_cleanup ../etc/nosendfile \\
	  ../etc/sendfile.cf

dist: clean
	@tar cf - . | (mkdir sendfile-1.6; cd sendfile-1.6; tar xf - )
	tar cvf - sendfile-1.6 | gzip > sendfile-1.6.tar.gz
	@zip -r sendfile-1.6.zip sendfile-1.6
	@rm -rf sendfile-1.6
	@ls -l sendfile-1.6.tar.gz sendfile-1.6.zip

floppy: clean
	tar cvzf /dev/fd0 .; tar czf /tmp/sf.tgz .
	@echo "insert a new disk and press enter"; read dummy
	mformat a:; mcopy /tmp/sf.tgz a:; rm -f /tmp/sf.tgz
