#Makefile for htimp, top level
#Copyright 1994 Globetrotter Software; see source files for full copyright.
#Jim McBeath (jimmc@globes.com)

#For use by 'make kit' command
DIR = htimp

KITFILES = README *-dist Makefile src/*.c src/*.h src/Makefile TODO \
	htimp.d/sample htimp.bin/test

default:	all

all:	prog

prog:;	cd src; $(MAKE) $@

kit:	$(DIR).tgz

$(DIR).tgz:	$(KITFILES)
	rm -f kit.list
	for f in $(KITFILES); do echo $(DIR)/$$f >> kit.list; done
	cd ..; tar cvf $(DIR)/$(DIR).tar `cat $(DIR)/kit.list`
	ls -l $(DIR).tar
	gzip -9 $(DIR).tar
	mv $(DIR).tar.gz $(DIR).tgz
	ls -l $(DIR).tgz

#end
