2 ALL_MDS = $(shell git ls-files | grep '\.md$$')
3 PUBLISH_PATH = /var/www/html/nepi
5 #ALL_PLUGINS = plugins/*.{js,css,html}
7 ########## default target
10 preview: prepare index meta convert
11 # this is what is invoked by restart-website.sh that is crontab'ed
12 install: preview publish
14 .PHONY: all preview publish install prepare index meta convert
15 preview_and_nepiall: prepare index meta nepi_all convert
16 install_and_nepiall: preview_and_nepiall publish
18 .PHONY: preview_and_nepiall install_and_nepiall
20 ########## global vars
21 # I am using the custom-made 'nepi' layout
22 # which was 'exported' (copied) from markdown-styles' 'bootstrap3'
24 LAYOUT = ./nepi-layout
28 @[ -d markdown ] || mkdir markdown
29 rsync -av --delete --relative $(ALL_MDS) markdown
31 # index.py is hard-wired to output in markdown/
33 @[ -d markdown ] || mkdir markdown
34 export LC_ALL=en_US.UTF-8; ./index.py $(ALL_MDS)
38 @[ -d markdown ] || mkdir markdown
41 ################################
43 # compile status informations by Nepi check
45 @[ -d markdown ] || mkdir markdown
49 generate-md --layout $(LAYOUT) --input markdown --output html
51 # default is ti publish locally as this runs right from r2lab.inria.fr
53 rsync -av --delete html/ $(PUBLISH_PATH)/
56 echo ALL_MDS=$(ALL_MDS)