Skip to content
Snippets Groups Projects
Makefile 488 B
Newer Older
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 -o $@ $<
Guilhem Saurel's avatar
Guilhem Saurel committed

check: all
	! grep 'videos/watch' ${SOURCES}  # you have to replace "watch" by "embed"
Guilhem Saurel's avatar
Guilhem Saurel committed

deploy: check
	chmod a+r,g+w ${OUTPUTS}
	rsync -avzP --delete public/ gepetto-deploy@memmos.laas.fr:${DEST}

clean:
	rm -f ${OUTPUTS}