# Makefile used to convert expander package 'pod' files to other forms.

usage:
	@ echo ""
	@ echo "Usage: make {<documentType>|all|clean}"
	@ echo ""
	@ echo "  where <documenType> can be: html latex man text"
	@ echo ""
	
man html text latex:
	build $@
	@ if [ $@ = "man" ]; then \
	    ext=1; \
	  elif [ $@ = "text" ]; then \
	    ext=txt; \
	  elif [ $@ = "latex" ]; then \
	    ext=tex; \
	  elif [ $@ = "html" ]; then \
	    ext=html; \
	    rm pod2html-*cache; \
	  fi; \
	  if [ ! -f unboxcomment.$$ext ]; then \
	    ln -s boxcomment.$$ext unboxcomment.$$ext; \
	  fi

all: man html text latex
kit: man

clean:
	rm -f *.1 *.html *.tex *.txt
