1 SRC
:= $(filter-out $(wildcard meta_
*), \
2 $(wildcard *.m4 fsf-internship
/*.m4
))
3 OUTPUTS
:= $(patsubst %.m4
,out
/%.html
, $(SRC
))
4 STATIC
:= $(patsubst static
/%,out
/%, $(wildcard static
/* static
/.
*))
6 all: $(OUTPUTS
) out
/notes.atom out
/notes.rss out
/style.css
$(STATIC
)
8 out
/%.html
: %.m4 header.html footer.html
11 out
/notes.atom
: meta_feed_atom.m4
; m4
$< > $@
12 out
/notes.rss
: meta_feed_rss.m4
; m4
$< > $@
13 $(STATIC
): ; ln
-s
$(PWD
)/static
/$(@F
) $@
15 # publications bibliography
16 static
/publications-partial.html
: static
/bandali.bib static
/bandali-bib-
*
17 static
/publications-partial.html
: static
/publications-
*
18 static
/publications-partial.html
:
19 $(MAKE
) -C
$(@D
) $(@F
)
20 out
/publications.html
: static
/publications-partial.html
21 out
/bandali-bib.html
: static
/bandali-bib-partial.html
27 rsync
-avzLP out
/ abandali@bndl.org
:www
/site
/
28 ssh abandali@bndl.org mv www
/site
/.htaccess-www www
/.htaccess
32 echo
$(SRC
) header.html footer.html \
33 static
/bandali.bib static
/bandali-bib-
* static
/publications-
* \
34 Makefile static
/Makefile | \
35 tr
" " "\n" | entr
-d make
; done