2023-04-17 09:09:27 +00:00
|
|
|
SRCDIR := ./
|
|
|
|
BUILDDIR := ./build/
|
|
|
|
OUTPUTDIR := ./opencola.materials/
|
2023-01-05 03:06:52 +00:00
|
|
|
|
|
|
|
include Targets
|
|
|
|
|
|
|
|
all: $(TARGETS)
|
|
|
|
|
2023-04-17 09:09:27 +00:00
|
|
|
$(TARGETS):
|
2023-01-17 00:03:22 +00:00
|
|
|
- mkdir build
|
2023-04-17 09:09:27 +00:00
|
|
|
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)
|
2023-01-05 03:06:52 +00:00
|
|
|
|
|
|
|
clean:
|
2023-01-17 00:03:22 +00:00
|
|
|
- rm -rf build
|