]> granicus.if.org Git - re2c/commitdiff
Makefile: include dependencies autogenerated by docutils.
authorUlya Trofimovich <skvadrik@gmail.com>
Fri, 13 Nov 2015 21:53:41 +0000 (21:53 +0000)
committerUlya Trofimovich <skvadrik@gmail.com>
Fri, 13 Nov 2015 21:53:41 +0000 (21:53 +0000)
Makefile

index 30783cf3d4152b3e401722a7dd78a78887be1412..d05f6329e27267eb18706ff4b7dc2697035e3750 100644 (file)
--- 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:
+