# 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}