Skip to content
Snippets Groups Projects
Commit 81bef9ba authored by rohieb's avatar rohieb
Browse files

Makefile: build MV 2019 and MV 2020 as subdirs

These dirs already have quite complex Makefiles, which can also be used
standalone.
parent 515392df
Branches
No related tags found
No related merge requests found
......@@ -11,11 +11,15 @@ JOBNAMES=$(basename $(SRCS))
PDFS=$(addsuffix .pdf,$(JOBNAMES))
LATESTJOB=$(basename $(shell ls -1t $(SRCS) | head -n 1))
SUBDIRS=\
Mitgliederversammlung_2019-01-20 \
Mitgliederversammlung_2020-01-26 \
define latexmk
latexmk -pdf -dvi- -ps-
endef
all: $(PDFS)
all: $(PDFS) $(SUBDIRS)
help:
@echo "Available make targets:"
......@@ -60,4 +64,11 @@ vc.tex: ../.git/index ../.git/HEAD ../scripts/vc ../scripts/vc-git.awk
cd $$(dirname "$<") && \
$(latexmk) $(if $(PVC),-pvc,-pvc-) $$(basename "$<")
.PHONY: $(SUBDIRS)
define build_subdirs
$d:
make -C $d
endef
$(foreach d,$(SUBDIRS),$(eval $(build_subdirs)))
# vim: ft=make ts=8 noet
......@@ -11,13 +11,16 @@ pandoc = pandoc -f markdown+grid_tables -i $< -s -t $(1) -o $@ $(2)
all: $(OBJ)
../../.git/modules/latex/: ../../.gitmodules
git submodule update --init
s0artcl.cls s0minutes.cls: ../../.git/modules/latex/
cd latex && make
rm -f $@ && ln -s $(patsubst %,latex/%,$@) .
touch $@
stratum0-latex/stratum0-latex.ins: ../../.gitmodules
if [ ! -h stratum0-latex ]; then \
git submodule update --init ; \
ln -s ../stratum0-latex/ . ; \
fi
s0artcl.cls s0minutes.cls: stratum0-latex/stratum0-latex.ins stratum0-latex/s0artcl.dtx stratum0-latex/s0minutes.dtx stratum0-latex/stratum0-latex.ins
${MAKE} -C stratum0-latex
if [ ! -h s0artcl.cls ]; then ln -s stratum0-latex/s0artcl.cls . ; fi
if [ ! -h s0minutes.cls ]; then ln -s stratum0-latex/s0minutes.cls . ; fi
%.pdf: %.latex s0minutes.cls s0artcl.cls
pdflatex $< \
......
../stratum0-latex/s0artcl.cls
\ No newline at end of file
stratum0-latex/s0artcl.cls
\ No newline at end of file
../stratum0-latex/s0minutes.cls
\ No newline at end of file
stratum0-latex/s0minutes.cls
\ 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