Skip to content
Snippets Groups Projects
Commit 4953085f authored by rohieb's avatar rohieb
Browse files

add a Makefile for easy building

parent e5d366f0
Branches
Tags
No related merge requests found
*.aux
*.glo
*.idx
*.out
*.ilg
*.ind
*.log
*.out
*.toc
*.cls
*.pdf
Makefile 0 → 100644
include Makefile.include
CLSLIST = s0artcl.cls s0minutes.cls
DTXLIST = s0artcl.dtx s0minutes.dtx
DOCLIST = $(patsubst %.dtx,%.pdf,$(DTXLIST))
INSFILE = stratum0-latex.ins
all: $(CLSLIST) doc
doc: $(DOCLIST)
$(CLSLIST): $(DTXLIST) $(INSFILE)
$(LATEX_SILENT) $(INSFILE)
%.pdf: %.dtx
$(ECHO) 'Generating documentation $@ ...'
$(PDFLATEX_SILENT) $< $(SILENT)
$(MAKEINDEX) -q -s gind.ist -o $*.ind $*.idx
$(PDFLATEX_SILENT) $< $(SILENT)
$(ECHO) -e '$(DONE_STRING)'
cleantemp:
$(RM) *.aux *.glo *.idx *.out *.ilg *.ind *.log *.out *.toc
clean: cleantemp
$(RM) *.cls *.pdf
MKDIR = mkdir
ECHO = @echo
OTFTOTFM = otftotfm
LATEX = latex
PDFLATEX = pdflatex
MAKEINDEX = makeindex
# color definitions
NO_COLOR = \x1b[0m
OK_COLOR = \x1b[32;01m
WARN_COLOR = \x1b[33;01m
ERROR_COLOR = \x1b[31;01m
# default strings
OK_STRING=$(OK_COLOR)[OK]$(NO_COLOR)
ERROR_STRING=$(ERROR_COLOR)[ERRORS]$(NO_COLOR)
WARN_STRING=$(WARN_COLOR)[WARNINGS]$(NO_COLOR)
DONE_STRING=$(OK_COLOR)[DONE]$(NO_COLOR)
PDFLATEX_SILENT = $(PDFLATEX) -interaction=batchmode
LATEX_SILENT = $(LATEX) -interaction=batchmode
SILENT=1>&1 > /dev/null
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment