File tree Expand file tree Collapse file tree 1 file changed +6
-3
lines changed
Expand file tree Collapse file tree 1 file changed +6
-3
lines changed Original file line number Diff line number Diff line change @@ -24,6 +24,9 @@ VERSION_TAGS := $(shell git tag --sort=-version:refname | head -3)
2424# Temporary directory for git worktrees
2525WORKTREE_DIR := $(BUILDDIR ) /worktrees
2626
27+ # Use variable for file location
28+ VERSION_INDEX_TEMPLATE = _templates/version_index.html
29+
2730.PHONY : help Makefile test doc8 dict-check sort-dict license clean clean-all \
2831 multiversion add-nojekyll create-version-index version-info clean-worktrees
2932
@@ -138,11 +141,11 @@ multiversion: $(VENV_NAME) Makefile clean-worktrees
138141create-version-index :
139142 @echo " Creating version index page..."
140143 @mkdir -p " $( BUILDDIR) /multiversion"
141- @if [ ! -f " _templates/version-index.html " ]; then \
142- echo " Error: Template file _templates/version-index.html not found" ; \
144+ @if [ ! -f " $( VERSION_INDEX_TEMPLATE ) " ]; then \
145+ echo " Error: Template file $( VERSION_INDEX_TEMPLATE ) not found" ; \
143146 exit 1; \
144147 fi
145- @cp " _templates/version-index.html " " $( BUILDDIR) /multiversion/index.html"
148+ @cp " $( VERSION_INDEX_TEMPLATE ) " " $( BUILDDIR) /multiversion/index.html"
146149 @if [ -n " $( VERSION_TAGS) " ]; then \
147150 version_cards=" " ; \
148151 for tag in $( VERSION_TAGS) ; do \
You can’t perform that action at this time.
0 commit comments