commit 5e2fa97fc23fb4d91860aeb2d483b7a4393effa3 parent 78c386a7334db8094e6296dc99f6b6b7efc5b2c0 Author: parazyd <parazyd@dyne.org> Date: Mon, 27 Nov 2017 15:24:50 +0100 add generation of .tex Diffstat:
M | Makefile | | | 8 | ++++++-- |
M | config.mk | | | 5 | ++++- |
2 files changed, 10 insertions(+), 3 deletions(-)
diff --git a/Makefile b/Makefile @@ -1,6 +1,6 @@ include config.mk -all: $(PAGES) +all: $(PAGES) $(TEXPAGES) %: %.md @echo " * generating $@" @@ -9,8 +9,12 @@ all: $(PAGES) @$(MARKDOWN) $^ >> $@ @cat footer.html >> $@ +%: %.tex + @echo " * generating $@" + @texi2pdf -c -q $^ -o $@ + clean: - rm -f $(PAGES) + rm -f $(PAGES) $(TEXPAGES) push: all @echo " * pushing to $(WEBHOST):$(WEBROOT)" diff --git a/config.mk b/config.mk @@ -5,4 +5,7 @@ WEBHOST = jakku.parazyd.cf WEBROOT = public_html/www.parazyd.cf MDS = $(shell find . -type f -name '*.html.md' -print) -PAGES= $(MDS:.md=) +PAGES = $(MDS:.md=) + +TEXS = $(shell find . -type f -name '*.pdf.tex' -print) +TEXPAGES = $(TEXS:.tex=)