1 SRC
:= $(filter-out $(wildcard meta_
*), $(wildcard *.m4
))
2 OUTPUTS
:= $(patsubst %.m4
,out
/%.html
, $(SRC
))
3 STATIC
:= $(patsubst static
/%,out
/%, $(filter-out static
/GNUmakefile
, $(wildcard static
/* static
/.
*)))
5 all: $(OUTPUTS
) out
/notes.atom out
/notes.rss out
/style.css out
/GNUmakefile
$(STATIC
)
7 out
/%.html
: %.m4 header.html footer.html
10 out
/notes.
%: meta_feed_
%.m4
$(SRC
) header.html footer.html
12 sed
-i
's|href="/\([^/]\)|href="https://bndl.org/\1|' $@
13 out
/GNUmakefile
: GNUmakefile
; ln
-s
$(PWD
)/$< $@
14 $(STATIC
): ; ln
-s
$(PWD
)/static
/$(@F
) $@
16 # publications bibliography
17 static
/publications-partial.html
: static
/bandali.bib static
/bandali-bib-
*
18 static
/publications-partial.html
: $(filter-out static
/publications-partial.html
, $(wildcard static
/publications-
*))
19 static
/publications-partial.html
:
20 $(MAKE
) -C
$(@D
) $(@F
)
21 out
/publications.html
: static
/publications-partial.html
22 out
/bandali-bib.html
: static
/bandali-bib-partial.html
28 rsync
-avzLP out
/ abandali@bndl.org
:www
/bndl.org
/
29 # ssh abandali@bndl.org mv www/bndl.org/.htaccess-www www/.htaccess
33 echo
$(SRC
) header.html footer.html \
34 static
/bandali.bib static
/bandali-bib-
* static
/publications-
* \
35 GNUmakefile static
/GNUmakefile | \
36 tr
" " "\n" | entr
-d make
; done