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