#! /usr/bin/make -f
#
.PHONY: install clean
 
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
INFO    =       $(prefix)/info
MAN     =       $(prefix)/man
TEXMF	=	$(LIB)/texmf
DOC	=	$(TEXMF)/doc/latex/graphics
SRC     =	$(TEXMF)/tex/latex/graphics


# This is the default action
all:
	tex graphics.ins

# This this installs below $(prefix)
install:
	$(INST_DIR)			$(prefix)
	$(INST_DIR)			$(TEXMF)/tex/latex/config
	$(INST_DIR)			$(SRC)
	$(INST_DIR)			$(DOC)
	$(INST_DAT) *.sty *.def		$(SRC)
	$(INST_DAT) *.cfg		$(TEXMF)/tex/latex/config
	$(INST_DAT) *.txt *.tex		$(DOC)

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

# Local Variables:
#   mode: makefile
# End:

