# Makefile (linux style) for creation of fcolumn-related files.
.SUFFIXES: .dtx .glo .gls .idx .ind .ins .pdf .sty .tex
DIST=fcexample.tex fcolumn.dtx fcolumn.ins fcolumn.pdf makefile README.md

.ins.sty:
	pdftex $<

.dtx.glo:
	pdflatex $<

.dtx.idx:
	pdflatex $<

.glo.gls:
	makeindex -s gglo.ist -o $*.gls $*.glo

.idx.ind:
	makeindex -s gind.ist -o $*.ind $*.idx

.dtx.pdf:
	pdflatex $<

.tex.pdf:
	pdflatex $<

all: fcolumn.pdf

install:
	pdftex fcolumn.ins

dist: $(DIST)
	mkdir fcolumn ; cp $(DIST) fcolumn/ ; tar -czf fcolumn.tgz fcolumn/ ; rm -r fcolumn/

fcolumn.glo fcolumn.idx: fcolumn.dtx
fcolumn.ind: fcolumn.idx
fcolumn.gls: fcolumn.glo
fcolumn.pdf: fcolumn.dtx fcolumn.gls fcolumn.ind

.PHONY: clean
clean:
	-rm fcolumn.aux fcolumn.glo fcolumn.gls fcolumn.hd  fcolumn.idx fcolumn.ilg \
     fcolumn.ind fcolumn.log fcolumn.out fcolumn.pdf fcolumn.sty fcolumn.tgz
