Files
cwsvJudo/infoZettelOrg/Makefile
marko 5c33dcf35b Infozettel für Landesjugendspiele:
new file:   2019-06-29--30-LJS2019.md
Infozettel werden nur noch insgesamt hochgeladen (aber immer noch
unnötig, da nicht alle neu verändert):
	modified:   Makefile
kyuZettel in eigenes Verzeichnis verbannt:
	renamed:    kyu-5-orange.md -> kyuZettel/kyu-5-orange.md
	renamed:    kyu-6-gelborange.md -> kyuZettel/kyu-6-gelborange.md
	renamed:    kyu-7-gelb.md -> kyuZettel/kyu-7-gelb.md
	renamed:    "kyu-8-wei\303\237gelb.md" -> "kyuZettel/kyu-8-wei\303\237gelb.md"
2019-06-26 06:11:26 +02:00

69 lines
2.0 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
all: 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=10pt" \
--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
#infoZettelUpload: $(infoZettelUploads)
infoZettelUpload: infoZettel
curl -T "{$$(echo *.md | tr ' ' ',')}" ftp://cwsvjudo:***REMOVED***@cwsvjudo.bplaced.net/www/infoZettel/
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)