diff options
author | Thomas Letan <lthms@soap.coffee> | 2020-02-26 19:16:22 +0100 |
---|---|---|
committer | Thomas Letan <lthms@soap.coffee> | 2020-02-26 19:16:22 +0100 |
commit | 5945bc80300f5504403ffe533dc60bfc95762695 (patch) | |
tree | e0655d4ea120a6d3af9193d1cda241a6809f9a3d /Makefile | |
parent | Allow cleopatra to create missing directories (diff) |
Introduce a notion of dependency between generation processes
The chain of generation processes is now divided into three
well-identified stages. The order of definition of generation
processes is no longer important.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 45 |
1 files changed, 31 insertions, 14 deletions
@@ -1,29 +1,46 @@ ROOT := $(shell pwd) CLEODIR := site/cleopatra -GENFILES := -GENAUX := -CONTENTS := -GENSASS := +ARTIFACTS := build.log +CONFIGURE := EMACSBIN := emacs EMACS := ROOT="${ROOT}" ${EMACSBIN} -TANGLE := --batch --load="${ROOT}/scripts/tangle-org.el" \ +TANGLE := --batch \ + --load="${ROOT}/scripts/tangle-org.el" \ 2>> build.log -default: init-log build +define emacs-tangle = +echo " tangle $<" +${EMACS} $< ${TANGLE} +endef -init-log: +default : postbuild ignore + +init : @rm -f build.log -.PHONY: init-log default build +prebuild : init + +build : prebuild -GENFILES += bootstrap.mk scripts/update-gitignore.sh -GENSASS += +postbuild : build + +.PHONY : init prebuild build postbuild ignore include bootstrap.mk -bootstrap.mk scripts/update-gitignore.sh \ - &: ${CLEODIR}/Bootstrap.org - @echo " tangle $<" - @${EMACS} $< ${TANGLE} +prebuild : bootstrap-prebuild +build : bootstrap-build +postbuild : bootstrap-postbuild + +bootstrap-build : bootstrap-prebuild +bootstrap-postbuild : bootstrap-build + +bootstrap.mk scripts/update-gitignore.sh &:\ + ${CLEODIR}/Bootstrap.org + @$(emacs-tangle) + +CONFIGURE += bootstrap.mk scripts/update-gitignore.sh + +.PHONY : bootstrap-prebuild bootstrap-build bootstrap-postbuild |