Remove toc.js from ReleaseNotes build
This is no longer required. Change-Id: Ibf9cbaa955225f7cb6e48d240ab3e32faf68691e Signed-off-by: Shawn O. Pearce <sop@google.com>
This commit is contained in:
@@ -19,7 +19,6 @@ PUB_ROOT ?= https://gerrit.googlecode.com/svn/ReleaseNotes
|
|||||||
|
|
||||||
DOC_HTML := $(patsubst %.txt,%.html,$(wildcard ReleaseNotes*.txt))
|
DOC_HTML := $(patsubst %.txt,%.html,$(wildcard ReleaseNotes*.txt))
|
||||||
COMMIT := $(shell git describe HEAD | sed s/^v//)
|
COMMIT := $(shell git describe HEAD | sed s/^v//)
|
||||||
SCRIPTSDIR := $(shell pwd)/../Documentation/javascript
|
|
||||||
LOCAL_ROOT := .published
|
LOCAL_ROOT := .published
|
||||||
PUB_DIR := $(PUB_ROOT)
|
PUB_DIR := $(PUB_ROOT)
|
||||||
|
|
||||||
@@ -49,17 +48,16 @@ clean:
|
|||||||
rm -f *.html
|
rm -f *.html
|
||||||
rm -rf $(LOCAL_ROOT)
|
rm -rf $(LOCAL_ROOT)
|
||||||
|
|
||||||
index.html: index.txt $(SCRIPTSDIR)/toc.js
|
index.html: index.txt
|
||||||
@echo FORMAT $@
|
@echo FORMAT $@
|
||||||
@rm -f $@+ $@
|
@rm -f $@+ $@
|
||||||
@$(ASCIIDOC) --unsafe \
|
@$(ASCIIDOC) --unsafe \
|
||||||
-a toc \
|
-a toc \
|
||||||
-a 'scriptsdir=$(SCRIPTSDIR)' \
|
|
||||||
-b xhtml11 -f asciidoc.conf \
|
-b xhtml11 -f asciidoc.conf \
|
||||||
$(ASCIIDOC_EXTRA) -o $@+ $<
|
$(ASCIIDOC_EXTRA) -o $@+ $<
|
||||||
@mv $@+ $@
|
@mv $@+ $@
|
||||||
|
|
||||||
$(DOC_HTML): %.html : %.txt $(SCRIPTSDIR)/toc.js
|
$(DOC_HTML): %.html : %.txt
|
||||||
@echo FORMAT $@
|
@echo FORMAT $@
|
||||||
@rm -f $@+ $@
|
@rm -f $@+ $@
|
||||||
@v=$$(echo $< | sed 's/^ReleaseNotes-//;s/.txt$$//;') && \
|
@v=$$(echo $< | sed 's/^ReleaseNotes-//;s/.txt$$//;') && \
|
||||||
@@ -69,7 +67,6 @@ $(DOC_HTML): %.html : %.txt $(SCRIPTSDIR)/toc.js
|
|||||||
$(ASCIIDOC) --unsafe \
|
$(ASCIIDOC) --unsafe \
|
||||||
-a toc \
|
-a toc \
|
||||||
-a "revision=$$v" \
|
-a "revision=$$v" \
|
||||||
-a 'scriptsdir=$(SCRIPTSDIR)' \
|
|
||||||
-b xhtml11 -f asciidoc.conf \
|
-b xhtml11 -f asciidoc.conf \
|
||||||
$(ASCIIDOC_EXTRA) -o $@+ $<
|
$(ASCIIDOC_EXTRA) -o $@+ $<
|
||||||
@mv $@+ $@
|
@mv $@+ $@
|
||||||
|
Reference in New Issue
Block a user