#include <psf_pre.imake>
#include <installmanpage.imake>

AllTarget(dot2anim genanim)

dot2anim: dot2anim.tmpl
	sed -e s+@PROG_PERL@+$(PROG_PERL)+g \
		< dot2anim.tmpl > dot2anim
	chmod +x dot2anim

genanim: genanim.tmpl
	sed -e s+@PROG_PERL@+$(PROG_PERL)+g \
	-e s+@BINDIR@+$(BINDIR)+g \
	-e s+@CURRENTDIR@+$(CURRENT_DIR)+g \
		< genanim.tmpl > genanim
	chmod +x genanim

InstallNamedProg(genanim,genanim,$(BINDIR))
InstallNamedProg(dot2anim,dot2anim,$(BINDIR))

PSFInstallManPage(genanim,1)
PSFInstallManPage(dot2anim,1)

clean::
	$(RM) genanim dot2anim

ARCHIVE = Imakefile genanim.tmpl dot2anim.tmpl genanim.man dot2anim.man version

#include <psf_post.imake>
