OpenCola/Makefile

18 lines
455 B
Makefile

SRCDIR := ./
BUILDDIR := ./build/
OUTPUTDIR := ./opencola.materials/
include Targets
all: $(TARGETS)
$(TARGETS):
- mkdir build
latex --output-format=pdf --output-directory=$(BUILDDIR) --directory=$(BUILDDIR) $(SRCDIR)/$@.tex
latex --output-format=pdf --output-directory=$(BUILDDIR) --directory=$(BUILDDIR) $(SRCDIR)/$@.tex
- mkdir build/$@
latex2html -dir $(BUILDDIR)/$@ $(SRCDIR)/$@.tex
cp $(BUILDDIR)/$@.pdf $(OUTPUTDIR)
clean:
- rm -rf build