From f5c8aff77ddb964147e0631f4d50f01509c7320d Mon Sep 17 00:00:00 2001 From: Ulya Trofimovich Date: Fri, 13 Nov 2015 21:53:41 +0000 Subject: [PATCH] Makefile: include dependencies autogenerated by docutils. --- Makefile | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 30783cf3..d05f6329 100644 --- a/Makefile +++ b/Makefile @@ -93,11 +93,12 @@ OBJ_RST = $(SRC_RST:%.rst=%.html) all: $(OBJ_RST) @ for f in $(SRC_OTH); do { mkdir -p "`dirname $$f`"; cp "$(VPATH)/$$f" "$$f"; } done -$(OBJ_RST): $(SRC_CSS) +-include $(SRC_RST:%.rst=%.d) .rst.html: @ mkdir -p "`dirname $@`" - @ rst2html.py --stylesheet="$(VPATH)/$(SRC_CSS)" $< $@ + @ rst2html.py --stylesheet="$(VPATH)/$(SRC_CSS)" --record-dependencies="$*.dd" $< $@ + @ echo $@: `cat $*.dd` > $*.d && rm $*.dd @ echo $@ clean: @@ -105,3 +106,5 @@ clean: .SUFFIXES: .rst .html +.POSIX: + -- 2.40.0