#! /usr/bin/make -f
#

INST_BIN=	install -g root -o root -m 755
INST_DIR=	install -g root -o root -d -m 755
INST_DAT=	install -g root -o root -m 644

prefix	=	/usr
BIN	=	$(prefix)/bin
LIB	=	$(prefix)/lib
TEXMF	=	$(LIB)/texmf
DOC	=	$(TEXMF)/doc/latex/misc
SRC	=	$(TEXMF)/tex/latex/misc

# This is the default action
all:
	yes | tex tools.ins

# This this installs below $(prefix)
install:
	$(INST_DIR)			$(prefix)
	$(INST_DIR)			$(SRC)
	$(INST_DIR)			$(DOC)
	$(INST_DAT)	*.sty *.tex .tex	$(SRC)
	$(INST_DAT)	*.dtx manifest.txt	$(DOC)

# This cleans up
clean:
	rm -f *.log *.sty *.tex .tex *~

# Local Variables:
#   mode: makefile
# End:

