Skip to content

Commit d4c69dc

Browse files
authored
Address issue with file name by changing hyphen to underscore (omec-project#86)
Signed-off-by: Arrobo, Gabriel <gabriel.arrobo@intel.com>
1 parent efa2204 commit d4c69dc

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

Makefile

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ VERSION_TAGS := $(shell git tag --sort=-version:refname | head -3)
2424
# Temporary directory for git worktrees
2525
WORKTREE_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
138141
create-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 \

0 commit comments

Comments
 (0)