Files
cwsvJudo/infoZettelOrg/Makefile
marko 0523c3091e - Wurden local noch nicht getrackt! Aber wie sind sie dann hierher
gekommen?
	new file:   infoZettelOrg/2018-09-16_JudoSafari2018.md
	new file:   infoZettelOrg/Makefile
	new file:   infoZettelOrg/pandocTemplate-cwsvJudoAushang.latex
	new file:   infoZettelOrg/pandocTemplate-cwsvJudoZettel.latex
2018-11-23 14:39:22 +01:00

64 lines
1.9 KiB
Makefile

infoZettel=$(patsubst %.md,%.pdf,$(wildcard *.md))
aushaenge=$(patsubst %.md,%.pdf,$(wildcard aushang/*.md))
infoZettelUploads=$(addprefix uploadTouch/, $(wildcard *.md)) $(addprefix uploadTouch/, $(wildcard *.pdf))
.PHONY: all
all: infoZettel infoZettelUpload aushaenge
.PHONY: infoZettel
infoZettel: $(infoZettel)
.PHONY: aushaenge
aushaenge: $(aushaenge)
%.pdf: %.md
pandoc \
--template=pandocTemplate-cwsvJudoZettel.latex \
--variable documentclass=scrartcl \
--variable classoption="twoside=true" \
--variable classoption="DIV=28" \
--variable classoption="BCOR=0mm" \
--variable classoption="paper=A6" \
--variable classoption="fontsize=12pt" \
--variable classoption="parskip=never" \
--variable classoption="headsepline=true" \
--variable classoption="headheight=1cm" \
--variable classoption="footsepline=true" \
--variable classoption="footheight=1cm" \
--output=$@ \
$^
aushang/%.pdf: aushang/%.md
pandoc \
--template=pandocTemplate-cwsvJudoAushang.latex \
--variable documentclass=scrartcl \
--variable classoption="twoside=true" \
--variable classoption="DIV=28" \
--variable classoption="BCOR=0mm" \
--variable classoption="paper=A4" \
--variable classoption="fontsize=16pt" \
--variable classoption="parskip=never" \
--variable classoption="headsepline=true" \
--variable classoption="headheight=1cm" \
--variable classoption="footsepline=true" \
--variable classoption="footheight=1cm" \
--output=$@ \
$^
.PHONY: infoZettelUpload
infoZettel: $(infoZettelUploads)
uploadTouch/%.md: %.md
curl --verbose --upload-file $^ ftp://cwsvjudo:***REMOVED***@cwsvjudo.bplaced.net/www/infoZettel/$^
touch $@
uploadTouch/%.pdf: %.pdf
curl --verbose --upload-file $^ ftp://cwsvjudo:***REMOVED***@cwsvjudo.bplaced.net/www/temp/druck/$^
touch $@
.PHONY: echo
echo:
# @echo $(infoZettel)
# @echo $(infoZettelUploads)
@echo $(aushaenge)