Skip to content
Snippets Groups Projects
Makefile 523 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
Guilhem Saurel's avatar
Guilhem Saurel committed
	pandoc -s \
		-F ./bibtex.py \
		--template template.html \
Guilhem Saurel's avatar
Guilhem Saurel committed
		--fail-if-warnings \
Guilhem Saurel's avatar
Guilhem Saurel committed
		-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}