Revert "Makefile: use Hugo with the -tags extended argument"

This reverts commit 44ffb09d7daa0e2a8c55750ef5da187a527f6478. Building
the extended version of Hugo requires CGo, which I don't want to have as
a build-time dependency for any part of Flamenco. So, unfortunately, no
WebP support.
This commit is contained in:
Sybren A. Stüvel 2024-05-16 12:36:42 +02:00
parent 9f6c1e3659
commit c5b13baab9

View File

@ -39,9 +39,7 @@ JS_API_PKG_NAME=manager
# ANY ABSOLUTE PATH. # ANY ABSOLUTE PATH.
WEB_STATIC=web/static WEB_STATIC=web/static
# The Hugo package + its version. When installing locally, use # The Hugo package + its version.
# go install -v -tags extended github.com/gohugoio/hugo@v0.121.2
# The 'extended' version is necessary for WebP encoding support.
HUGO_PKG := github.com/gohugoio/hugo@v0.121.2 HUGO_PKG := github.com/gohugoio/hugo@v0.121.2
# Prevent any dependency that requires a C compiler, i.e. only work with pure-Go libraries. # Prevent any dependency that requires a C compiler, i.e. only work with pure-Go libraries.
@ -257,7 +255,7 @@ clean-webapp-static:
touch ${WEB_STATIC}/emptyfile touch ${WEB_STATIC}/emptyfile
devserver-website: devserver-website:
go run -tags extended ${HUGO_PKG} -s web/project-website serve go run ${HUGO_PKG} -s web/project-website serve
devserver-webapp: devserver-webapp:
yarn --cwd web/app run dev --host yarn --cwd web/app run dev --host
@ -265,7 +263,7 @@ devserver-webapp:
deploy-website: deploy-website:
$(MAKE) -s check-environment $(MAKE) -s check-environment
rm -rf web/project-website/public/ rm -rf web/project-website/public/
go run -tags extended ${HUGO_PKG} -s web/project-website --baseURL https://flamenco.blender.org/ go run ${HUGO_PKG} -s web/project-website --baseURL https://flamenco.blender.org/
rsync web/project-website/public/ ${WEBSERVER_SSH}:${WEBSERVER_ROOT}/ \ rsync web/project-website/public/ ${WEBSERVER_SSH}:${WEBSERVER_ROOT}/ \
-e "ssh" \ -e "ssh" \
-rl \ -rl \