2 ALL_MDS = $(shell git ls-files | grep '\.md$$')
3 # a first, quick and dirty approach is to publish right
4 # in /var/www/html so there's no impact on the httpd config
5 # of course we might have to isolate this underneath at some point
6 PUBLISH_PATH = /var/www/html
8 #ALL_PLUGINS = plugins/*.{js,css,html}
10 ########## default target
13 preview: prepare index meta convert
14 # this is what is invoked by restart-website.sh that is crontab'ed
15 install: preview publish
17 .PHONY: all preview publish install prepare index meta convert
18 preview_and_nepiall: prepare index meta nepi_all convert
19 install_and_nepiall: preview_and_nepiall publish
21 .PHONY: preview_and_nepiall install_and_nepiall
23 ########## global vars
24 # I am using the custom-made 'nepi' layout
25 # which was 'exported' (copied) from markdown-styles' 'bootstrap3'
27 LAYOUT = ./nepi-layout
31 @[ -d markdown ] || mkdir markdown
32 rsync -av --delete --relative $(ALL_MDS) markdown
34 # index.py is hard-wired to output in markdown/
36 @[ -d markdown ] || mkdir markdown
37 export LC_ALL=en_US.UTF-8; ./index.py $(ALL_MDS)
41 @[ -d markdown ] || mkdir markdown
44 ################################
46 # compile status informations by Nepi check
48 @[ -d markdown ] || mkdir markdown
52 generate-md --layout $(LAYOUT) --input markdown --output html
54 # default is to publish locally as this runs right from nepi-newpl.sophia.inria.fr
56 rsync -av --delete html/ $(PUBLISH_PATH)/
59 echo ALL_MDS=$(ALL_MDS)