mirror of https://github.com/zcash/zips.git
Makefile: rebuild index if files have been deleted.
Signed-off-by: Daira Hopwood <daira@jacaranda.org>
This commit is contained in:
parent
604532cca1
commit
283480c802
|
@ -20,6 +20,7 @@
|
||||||
*.save
|
*.save
|
||||||
|
|
||||||
.Makefile.uptodate
|
.Makefile.uptodate
|
||||||
|
.zipfilelist.*
|
||||||
|
|
||||||
protocol/aux/
|
protocol/aux/
|
||||||
protocol/html/
|
protocol/html/
|
||||||
|
|
7
Makefile
7
Makefile
|
@ -4,6 +4,9 @@
|
||||||
|
|
||||||
.PHONY: all all-zips protocol
|
.PHONY: all all-zips protocol
|
||||||
all-zips: .Makefile.uptodate
|
all-zips: .Makefile.uptodate
|
||||||
|
find . -name 'zip-*.rst' |sort >.zipfilelist.new
|
||||||
|
diff .zipfilelist.current .zipfilelist.new || cp -f .zipfilelist.new .zipfilelist.current
|
||||||
|
rm -f .zipfilelist.new
|
||||||
$(MAKE) README.rst
|
$(MAKE) README.rst
|
||||||
$(MAKE) index.html $(addsuffix .html,$(filter-out README,$(basename $(wildcard *.rst))))
|
$(MAKE) index.html $(addsuffix .html,$(filter-out README,$(basename $(wildcard *.rst))))
|
||||||
|
|
||||||
|
@ -28,9 +31,9 @@ index.html: README.rst
|
||||||
%.html: %.rst
|
%.html: %.rst
|
||||||
$(PROCESSRST)
|
$(PROCESSRST)
|
||||||
|
|
||||||
README.rst: makeindex.sh README.template $(wildcard zip-*.rst)
|
README.rst: .zipfilelist.current makeindex.sh README.template $(wildcard zip-*.rst)
|
||||||
./makeindex.sh | cat README.template - >README.rst
|
./makeindex.sh | cat README.template - >README.rst
|
||||||
|
|
||||||
.PHONY: clean
|
.PHONY: clean
|
||||||
clean:
|
clean:
|
||||||
rm -f README.rst index.html $(addsuffix .html,$(basename $(wildcard *.rst)))
|
rm -f .zipfilelist.* README.rst index.html $(addsuffix .html,$(basename $(wildcard *.rst)))
|
||||||
|
|
Loading…
Reference in New Issue