#ifndef XCOMM
#define XCOMM #
#endif

XCOMM TransFig: Facility for Translating Fig code
XCOMM Copyright (c) 1991 Micah Beck

XCOMM Any party obtaining a copy of these files is granted, free of charge, a
XCOMM full and unrestricted irrevocable, world-wide, paid up, royalty-free,
XCOMM nonexclusive right and license to deal in this software and
XCOMM documentation files (the "Software"), including without limitation the
XCOMM rights to use, copy, modify, merge, publish and/or distribute copies of
XCOMM the Software, and to permit persons who receive copies from any such 
XCOMM party to do so, with the only requirement being that this copyright 
XCOMM notice remain intact.

XCOMM ******
XCOMM If you want to install transfig in a directory other than the default X11 binary
XCOMM directory, uncomment the following "BINDIR" line and change the path
XCOMM to the full path of the directory where you want transfig to be installed.
XCOMM Also, you may have to uncomment and redefine MKDIRHIER because "make" looks
XCOMM for it relative to the BINDIR variable.
XCOMM
XCOMM BINDIR = /usr/bin/X11
XCOMM MKDIRHIER = /bin/sh /usr/bin/X11/mkdirhier

XCOMM MANDIR tells where the standard man pages should go (no need to change it
XCOMM if you want the man pages installed in the standard place on your system
XCOMM MANDIR = $(MANSOURCEPATH)$(MANSUFFIX)

XCOMM Uncomment the USELATEX2E flag to use the
XCOMM \\usepackage{} command for LaTeX2e. 
XCOMM The default is to use \\documentstyle{} for LaTeX209.

XCOMM USELATEX2E = -DLATEX2E

XCOMM ******* DON'T CHANGE ANYTHING BELOW THIS POINT *******

DEFINES = $(USELATEX2E)
DEPLIBS =
INCLUDES = -I..

SRCS = transfig.c txfile.c mkfile.c sys.c
OBJS = transfig.o txfile.o mkfile.o sys.o

ComplexProgramTarget(transfig)

all:: transfig.man fig2dev.man fig2ps2tex.man pic2tpic.man

transfig.man:: ../doc/transfig.1
	$(RM) transfig.man
	-ln -s ../doc/transfig.1 transfig.man

InstallManPage(fig2ps2tex,$(MANDIR))
InstallManPage(pic2tpic,$(MANDIR))

fig2dev.man:: ../doc/fig2dev.1
	$(RM) fig2dev.man
	-ln -s ../doc/fig2dev.1 fig2dev.man

fig2ps2tex.man:: ../doc/fig2ps2tex.1
	$(RM) fig2ps2tex.man
	-ln -s ../doc/fig2ps2tex.1 fig2ps2tex.man

pic2tpic.man:: ../doc/pic2tpic.1
	$(RM) pic2tpic.man
	-ln -s ../doc/pic2tpic.1 pic2tpic.man

clean::
	rm -f *.man
