Skip to content

Commit

Permalink
Define METPLUS_ROOT in the Makefile for the docs.
Browse files Browse the repository at this point in the history
  • Loading branch information
gsketefian committed Nov 14, 2024
1 parent 3d0bd5c commit 7b8bc8d
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions doc/Makefile
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
# Makefile for Sphinx documentation

SPHINXOPTS = -a -n -W
#SPHINXOPTS = -a -n -W
SPHINXOPTS = -a -n
SPHINXBUILD = sphinx-build
SOURCEDIR = .
BUILDDIR = build
LINKCHECKDIR = $(BUILDDIR)/linkcheck
METPLUSROOT = /scratch1/NCEPDEV/nems/role.epic/spack-stack/spack-stack-1.6.0/envs/upp-addon-env/install/intel/2021.5.0/metplus-5.1.0-eznr7ze

.PHONY: help Makefile linkcheck

Expand All @@ -14,8 +16,8 @@ help:

doc:
make clean
$(MAKE) linkcheck
$(MAKE) html
export METPLUS_ROOT=$(METPLUSROOT) ; $(MAKE) linkcheck
export METPLUS_ROOT=$(METPLUSROOT) ; $(MAKE) html

linkcheck:
$(SPHINXBUILD) -b linkcheck $(SPHINXOPTS) $(SOURCEDIR) $(LINKCHECKDIR)
Expand All @@ -24,4 +26,4 @@ linkcheck:
# "make mode" option. $(O) is meant as a shortcut for $(SPHINXOPTS).

%: Makefile
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -w $(BUILDDIR)/warnings.log
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) -w $(BUILDDIR)/warnings.log

0 comments on commit 7b8bc8d

Please sign in to comment.