https://gitorious.org/ocamlp3l/ocamlp3l_cvs.git
Raw File
Tip revision: ad58ae426e7e9200530d18bf439d02657503426c authored by fclement on 23 November 2010, 11:33 UTC
Ignore all generated files.
Tip revision: ad58ae4
Makefile.common
# Generic rules
.SUFFIXES:
.SUFFIXES: .pic .tex .bib .dvi .advi .bbl .ps .pdf .html .htm .man .m

.pic.tex:
	$(PIC) -t $< > $@

.tex.dvi:
	$(LATEX) $<

.dvi.advi:
	$(DVICOPY) $< > $@

.tex.bbl:
	$(LATEX) $<
	$(BIBTEX) $*

.tex.ps:
	$(LATEX) $<
	$(LATEX) '\def\driver{dvips}\input' $<
	$(DVIPS) -o $@ $*.dvi

.tex.pdf:
	$(LATEX) $<
	$(LATEX) '\def\driver{dvipdfm}\input' $<
	$(DVIPDFM) -o $@ $*.dvi

.tex.htm:
	$(HEVEA) -o $@ $<

.html.htm:
	$(HTMLC) -from $< -to $@

.man.m:
	$(HTMLC) -from $< -to $@

# Generic targets
.PHONY: all dvi ps pdf htm html man m clean clean-all

all:: dvi ps pdf htm

dvi:: $(TEXOBJS)

ps:: $(DVIPSOBJS)

pdf:: $(DVIPDFOBJS)

html htm:: $(HEVEAOBJS) $(HTMLCHTMOBJS)

man m:: $(HTMLCMOBJS)

$(ALLHTMLCOBJS): $(HTMLCINCLUDES)

clean::
	$(RM) *~ *.aux *.log *.idx *.advi *.out *.toc *.bbl *.blg
	$(RM) *.hidx *.hind *.haux *.htoc *.image.tex

clean-all:: clean
	$(RM) *.dvi *.ps* *.pdf *.htm *.m
	$(RM) *.gif
back to top