Skip to content
Snippets Groups Projects
Commit 3ec16f36 authored by Axel Kohlmeyer's avatar Axel Kohlmeyer
Browse files

fully integrate support for doc_anchor_check into docs makefile

parent 734e639c
No related branches found
No related tags found
No related merge requests found
...@@ -6,6 +6,7 @@ BUILDDIR = /tmp/lammps-docs-$(SHA1) ...@@ -6,6 +6,7 @@ BUILDDIR = /tmp/lammps-docs-$(SHA1)
RSTDIR = $(BUILDDIR)/rst RSTDIR = $(BUILDDIR)/rst
VENV = $(BUILDDIR)/docenv VENV = $(BUILDDIR)/docenv
TXT2RST = $(VENV)/bin/txt2rst TXT2RST = $(VENV)/bin/txt2rst
ANCHORCHECK = $(VENV)/bin/doc_anchor_check
PYTHON = $(shell which python3) PYTHON = $(shell which python3)
HAS_PYTHON3 = NO HAS_PYTHON3 = NO
...@@ -50,7 +51,7 @@ clean: ...@@ -50,7 +51,7 @@ clean:
clean-spelling: clean-spelling:
rm -rf spelling rm -rf spelling
html: $(OBJECTS) html: $(OBJECTS) $(ANCHORCHECK)
@(\ @(\
. $(VENV)/bin/activate ;\ . $(VENV)/bin/activate ;\
cp -r src/* $(RSTDIR)/ ;\ cp -r src/* $(RSTDIR)/ ;\
...@@ -131,7 +132,7 @@ fetch: ...@@ -131,7 +132,7 @@ fetch:
txt2html: utils/txt2html/txt2html.exe txt2html: utils/txt2html/txt2html.exe
anchor_check : $(TXT2RST) anchor_check : $(ANCHORCHECK)
@(\ @(\
. $(VENV)/bin/activate ;\ . $(VENV)/bin/activate ;\
doc_anchor_check src/*.txt ;\ doc_anchor_check src/*.txt ;\
...@@ -162,7 +163,7 @@ $(VENV): ...@@ -162,7 +163,7 @@ $(VENV):
deactivate;\ deactivate;\
) )
$(TXT2RST): $(VENV) $(TXT2RST) $(ANCHORCHECK): $(VENV)
@( \ @( \
. $(VENV)/bin/activate; \ . $(VENV)/bin/activate; \
(cd utils/converters;\ (cd utils/converters;\
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment