# Tâche par défaut. .DEFAULT_GOAL:=all all: index.html .PHONY: all clean # Fichiers sources. HS_FILES=$(wildcard ../src/*.hs) # Interfaces. HI_BASE=$(wildcard /usr/lib/ghc-doc/haddock/ghc/base-*/base.haddock) HI_PANDOC_TYPES=$(wildcard /usr/lib/ghc-doc/haddock/pandoc-types-*/pandoc-types.haddock) # Construction de la documentation. index.html: ../src/diamond.hs $(HS_FILES) haddock \ --read-interface=https://hackage.haskell.org/package/base/docs,$(HI_BASE) \ --read-interface=https://hackage.haskell.org/package/pandoc-types/docs/,$(HI_PANDOC_TYPES) \ --source-base=../src \ --odir . --html $^ # Nettoyage. clean: rm -f *.html *.css *.js *.json *.png # vim: set tw=80 ts=4 sw=4 sts=4 spelllang=fr: