blob: 8e88c210cc94c6a18764ce6933e6794177a769e6 (
plain)
- IKIWIKI_OPTIONS ?= \
- --set srcdir=$(CURDIR)/content \
- --set destdir=$(CURDIR)/build/html \
- $(IKIWIKI_SHARED_OPTIONS) $(IKIWIKI_CONFIG_OPTIONS)
- -include shared/include.mk
- -include config/include.mk
- all: build
- init: submodules config content
- submodules:
- git submodule init
- git submodule update --init --recursive
- config:
- mkdir -p "$@"
- [ -e "$@/ikiwiki.setup" ] || ikiwiki $(IKIWIKI_OPTIONS) --dumpsetup "$@/ikiwiki.setup"
- content:
- mkdir -p "$@"
- [ -e "$@/index.mdwn" ] || printf "# Hello world!\n\nHello world!\n" > "$@/index.mdwn"
- build:
- find config -name '*.setup' -exec ikiwiki --setup '{}' --rebuild ';'
- .PHONY: all build submodules
|