Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix Makefile targets #73

Merged
merged 1 commit into from
Jul 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 7 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,11 @@ HUGO_CMD=${HUGO_DIR}/hugo

#: Display this help (i.e. list all available targets). (DEFAULT TARGET)
help:
@echo
@echo "Available targets:"
@grep -B1 -E "^[a-zA-Z0-9_-]+\:([^\=]|$$)" Makefile \
| grep -v -- -- \
| sed 'N;s/\n/###/' \
| sed -n "s/^#: \(.*\)###\(.*\):.*/* \2@\1/p" \
| fold -s -w 65 \
| sed 's/^[ \n\t]*\([^*]\)/@\1/' \
| column -t -o ' ' -s '@' \
| sed "s/^\* \([a-zA-Z-]\+\) /\n* ${BOLD}\1${NORMAL} /"
@echo
@echo "Make targets for ivoa-web"
@echo "make preview - Start the preview service (on port 1313). All required tools are installed/upgraded automatically, when needed."
@echo "make list-draft - List all draft pages (i.e. all pages only visible in preview mode)."
@echo "make install - Install Hugo (or upgrade it if a different version is set in Makefile)."
@echo "make uninstall - Uninstall Hugo."


#: Start the preview service (on port 1313). All required tools are installed/upgraded automatically, when needed.
Expand Down Expand Up @@ -55,10 +49,10 @@ ${HUGO_VERSION_FILE}:
else \
echo "- Installing Hugo..."; \
fi

@echo " - 1/6 - Downloading Hugo (version: ${HUGO_VERSION})..."
@wget -q --show-progress "${HUGO_URL}/v${HUGO_VERSION}/${HUGO_ARCHIVE}"

@echo " - 2/6 - Deprecating existing Hugo version..."
@if [ -d "${HUGO_DIR}" ]; then \
rm -rf "${HUGO_DIR_OLD}"; \
Expand Down
Loading