make publications and bandali-bib actual pages
[~bandali/bndl.org] / Makefile
CommitLineData
8c1ba2f2
AB
1SRC := $(filter-out $(wildcard meta_*), \
2$(wildcard *.m4 fsf-internship/*.m4))
3OUTPUTS := $(patsubst %.m4,out/%.html, $(SRC))
842b89b2 4STATIC := $(patsubst static/%,out/%, $(wildcard static/* static/.*))
38037201 5
066f7565 6all: $(OUTPUTS) out/notes.atom out/notes.rss out/style.css $(STATIC)
38037201 7
d9462d28
AB
8out/%.html: %.m4 header.html footer.html
9 @mkdir -p $(@D)
10 m4 $< > $@
466a17dd
AB
11out/notes.atom: meta_feed_atom.m4 ; m4 $< > $@
12out/notes.rss: meta_feed_rss.m4 ; m4 $< > $@
8c1ba2f2
AB
13$(STATIC): ; ln -s $(PWD)/static/$(@F) $@
14
15# publications bibliography
842b89b2
AB
16static/publications-partial.html: static/bandali.bib static/bandali-bib-*
17static/publications-partial.html: static/publications-*
18static/publications-partial.html:
8c1ba2f2 19 $(MAKE) -C $(@D) $(@F)
842b89b2
AB
20out/publications.html: static/publications-partial.html
21out/bandali-bib.html: static/bandali-bib-partial.html
38037201 22
d9462d28
AB
23clean:
24 rm -rf out/
25
38037201 26deploy:
3fdab855
AB
27 rsync -avzLP out/ abandali@bndl.org:www/site/
28 ssh abandali@bndl.org mv www/site/.htaccess-www www/.htaccess
e4b339cf 29
8c1ba2f2
AB
30watch:
31 while true; do \
32 echo $(SRC) header.html footer.html \
842b89b2 33 static/bandali.bib static/bandali-bib-* static/publications-* \
8c1ba2f2
AB
34 Makefile static/Makefile | \
35 tr " " "\n" | entr -d make; done
36
37.PHONY: deploy watch