Skip to content
Snippets Groups Projects
Makefile 420 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}

Guilhem Saurel's avatar
Guilhem Saurel committed
public/%.html: %.md template.html *.bib
	pandoc -s -F ./cite.py --template template.html -o $@ $<
Guilhem Saurel's avatar
Guilhem Saurel committed

clean:
	rm -f ${OUTPUTS}

deploy: all
	mkdir -p ${DEST}
	cp ${OUTPUTS} ${DEST}
	chown -R :gepetto ${DEST}
	chmod -R a+rX,g+w ${DEST}
Guilhem Saurel's avatar
Guilhem Saurel committed

publish: deploy