SOURCES = $(filter-out README.md, $(wildcard *.md)) OUTPUTS = $(SOURCES:%.md=public/%.html) DEST="/net/cubitus/projects/Partage_GEPETTO/Public/articles" all: ${OUTPUTS} public/%.html: %.md template.html pandoc -s \ -F ./bibtex.py \ --template template.html \ --fail-if-warnings \ -o $@ $< check: all ! grep 'videos/watch' ${SOURCES} # you have to replace "watch" by "embed" deploy: check chmod a+r,g+w ${OUTPUTS} rsync -avzP --delete public/ gepetto-deploy@memmos.laas.fr:${DEST} clean: rm -f ${OUTPUTS}