diff options
| -rw-r--r-- | Makefile | 38 |
1 files changed, 38 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..3dc01dd --- /dev/null +++ b/Makefile @@ -0,0 +1,38 @@ +# TODO: help +export SHELL = /bin/bash + +-include config.mk + +ifndef HUGO +HUGO := hugo +endif + +ifndef TEMPLATE +TEMPLATE := ${CURDIR}/template +endif + +ifndef CONTENT +CONTENT := ${CURDIR}/landau +endif + +ifndef DEPLOY +DEPLOY := ${CURDIR}/public +endif + +all: \ + .build-site + +# --- Generate Site + +${DEPLOY}: + mkdir -p $@ + +.build-site: ${TEMPLATE} ${CONTENT} | ${DEPLOY} + (cd ${TEMPLATE} && \ + ${HUGO} -D -c ${CONTENT} -d ${DEPLOY} \ + --enableGitInfo --enableGitPurismInfo --gc) + +PHONY: .build-site + +dist-clean:: + rm -rf ${DEPLOY} |
