diff options
| author | Lexi Winter <lexi@le-fay.org> | 2025-07-22 12:12:22 +0100 |
|---|---|---|
| committer | Lexi Winter <lexi@le-fay.org> | 2025-07-22 12:12:22 +0100 |
| commit | 7086d13eb5fc26a8e4c461c9a0ff5ead5de010b3 (patch) | |
| tree | fa87f57d32c962b721400df503e36050bb3b3dad /Makefile.inc | |
| download | www.le-fay.org-7086d13eb5fc26a8e4c461c9a0ff5ead5de010b3.tar.gz www.le-fay.org-7086d13eb5fc26a8e4c461c9a0ff5ead5de010b3.tar.bz2 | |
initial commit
Diffstat (limited to 'Makefile.inc')
| -rw-r--r-- | Makefile.inc | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile.inc b/Makefile.inc new file mode 100644 index 0000000..4c0b100 --- /dev/null +++ b/Makefile.inc @@ -0,0 +1,38 @@ +# vim:set ft=make: +# This source code is released into the public domain. + +ADOCFLAGS= -a linkcss -a stylesheet=${ROOTDIR}main.css +.SUFFIXES: .html .adoc + +HTML= ${PAGES:.adoc=.html} + +build: ${HTML} .PHONY +.for dir in ${SUBDIR} + @echo "build ==> ${dir}" + @make -C ${dir} ROOTDIR=${ROOTDIR}../ WWWROOT=${WWWROOT}/${dir} build + @echo "build <== ${dir}" +.endfor + +clean: .PHONY + rm -f ${HTML} +.for dir in ${SUBDIR} + @echo "clean ==> ${dir}" + @make -C ${dir} clean + @echo "clean <= ${dir}" +.endfor + +install: ${HTML} .PHONY + install -d ${WWWROOT} + +.for file in ${HTML} ${FILES} + install -C -m 0644 ${file} ${WWWROOT} +.endfor + +.for dir in ${SUBDIR} + @echo "build ==> ${dir}" + @make -C ${dir} ROOTDIR=${ROOTDIR}../ WWWROOT=${WWWROOT}/${dir} install + @echo "build <== ${dir}" +.endfor + +.adoc.html: + asciidoctor ${ADOCFLAGS} -o ${.TARGET} ${.IMPSRC} |
