# Makefile.in
# 
# This file is part of the t1lib-package! See documentation and Readme files
# of the t1lib-package for copyright restrictions.
#
# Targets provided: 
#                      all (default)
#                      install
#                      uninstall
#                      clean
#                      pdf (this is internally used only because it
#                           interferes with the all-target) 
#                      ps  (now=all-target)
#
# Author:              Rainer Menzner (Rainer.Menzner@web.de)
# Date:                04/06/1997
# Last modified:       2004-12-12
#

SHELL     = /bin/sh
CC        = gcc
CPP       = gcc -E
CFLAGS    = -O2 -fno-reorder-blocks -fPIC -D_FORTIFY_SOURCE=2 -I/usr/pkg/include -I/usr/X11R7/include -I/usr/include -DT1LIB_IDENT="\"5.1.2\"" -DGLOBAL_CONFIG_DIR="\"${prefix}/share/t1lib\""
OPTIONS   = 
X_LIBS    =  -L/usr/X11R7/lib
TOPSRC    = ..
XPM_LIB   = -lXpm
XLIB      =  -lSM -lICE -lXext -lX11 
LDFLAGS   = -L/usr/pkg/lib -L/usr/X11R7/lib -Wl,-R/usr/X11R7/lib -L/usr/lib -Wl,-R/usr/lib -Wl,-R/usr/pkg/lib
LDLIBS    = -lm
AR        = ar rc
RANLIB    = ranlib
RM        = rm -f
X_CFLAGS  =  -I/usr/X11R7/include
YACC      = @YACC@
LEX       = @LEX@
LEXLIB    = @LEXLIB@
ALLCFLAGS = $(CFLAGS) $(X_CFLAGS)
SUBMAKE   = $(MAKE) 'CC=$(CC)' 'CFLAGS=$(ALLCFLAGS)' 'OPTIONS=$(OPTIONS)'


INSTALL         = /usr/bin/install -c -o pbulk -g users
INSTALL_PROGRAM = /usr/bin/install -c -s -o pbulk -g users -m 755
INSTALL_DATA    = /usr/bin/install -c -o pbulk -g users -m 644
MKINSTALLDIRS   = ../ac-tools/mkinstalldirs
prefix          = /usr/pkg
exec_prefix     = ${prefix}
includedir      = ${prefix}/include
bindir          = ${exec_prefix}/bin
datadir         = ${prefix}/share
libdir          = ${exec_prefix}/lib
mandir          = /usr/pkg/man/man1
manext          = .1
no_x            = 


# targets to build 


all: t1lib_doc.ps


t1lib_doc.dvi: t1lib_doc.tex intro.tex getstart.tex xglyph.tex ut1lib.tex xinterface.tex internals.tex type1afm.tex
	latex t1lib_doc.tex
	makeindex t1lib_doc
	latex t1lib_doc.tex
	latex t1lib_doc.tex


.PHONY: clean


ps: t1lib_doc.ps


t1lib_doc.ps: t1lib_doc.dvi
	      dvips -o t1lib_doc.ps t1lib_doc


pdf: t1lib_doc.tex intro.tex getstart.tex xglyph.tex ut1lib.tex xinterface.tex internals.tex type1afm.tex
	pdflatex t1lib_doc.tex
	makeindex t1lib_doc
	pdflatex t1lib_doc.tex
	pdflatex t1lib_doc.tex


clean: dummy
	$(RM) \#*\# *~ *.log *.aux *.bak *.dvi *.toc *.ilg *.idx *.ind *.out t1lib_doc.ps


install: dummy


uninstall: dummy
	$(RM) -R $(DESTDIR)${prefix}/share/t1lib/doc


dummy:
