blob: 5cceff216779c23a0f196fbfb32d6847d695839c (
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
- -include shared/themes/Makefile
- all: build
- init: submodules content
- -$(MAKE) -C shared/themes
- $(MAKE) config
- submodules:
- git submodule init
- git submodule update --init --recursive
- config: submodules
- mkdir -p '$@'
- [ -e '$@/'*.setup ] || ikiwiki $(IKIWIKI_OPTIONS) --dumpsetup '$@/ikiwiki.setup'
- content: submodules
- mkdir -p '$@'
- [ -e '$@/index.mdwn' ] || printf '# Hello world!\n\nHello world!\n' > '$@/index.mdwn'
- build: $(cssfiles)
- find config -name *.setup -exec ikiwiki --setup '{}' --rebuild ';'
- .PHONY: all build submodules content
|