TARGETS=Makefile README bin doc support
VERSION="1.00"
IV="imeshtk-utils-$(VERSION)"

all:
	@echo This makefile is used only for distribution building

release:
	tar --create --verbose --compress --file dist.tar.gz --exclude RCS --exclude '*~' --exclude core --exclude 'spt2oai.*' $(TARGETS)
	rm -rf $(IV) $(IV).tar.gz 2>/dev/null
	mkdir $(IV)
	(cd $(IV) && tar zxvf ../dist.tar.gz)
	tar zcf $(IV).tar.gz $(IV)
	rm -f dist.tar.gz

htmldocs:
	(cd bin; for I in *.pl; do J=`basename $$I .pl`; pod2html $$I >../doc/$$J.html; done)
