aAPT
dDebian
fFFmpeg
jJava
mMercurial: Usage
oOCaml
pPostgreSQL

Home Applications TeX

Latex2man ref

Example Makefile

CC    = latex2man
CCPDF = pdflatex
SRC   = $(shell ls *.tex)
MAN   = $(SRC:.tex=.1)
HTML  = $(SRC:.tex=.html)
PDF   = $(SRC:.tex=.pdf)

.PHONY: all man html pdf clean distclean

man: $(MAN)
html: $(HTML)
pdf: $(PDF)
all: man html pdf

%.1: %.tex
	$(CC) -M $*.tex $*.1

%.html: %.tex
	$(CC) -H $*.tex $*.html

%.pdf: %.tex
	$(CCPDF) -interaction=nonstopmode $*.tex

clean:
	rm -f *~ *.aux *.log *.dvi .xxx *.out