We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9c77db5 commit 1a93b17Copy full SHA for 1a93b17
Makefile
@@ -1,9 +1,16 @@
1
SHELL := /bin/bash
2
3
+HUGO_VERSION := 0.139.4
4
+
5
dev:
6
hugo server -D --noHTTPCache --disableFastRender --ignoreCache
7
8
update:
- -rm ~/go/bin/hugo 2>/dev/null
9
CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@latest
10
+ $(eval VERSION := $(shell hugo version | grep -oP '\d+\.\d+\.\d+'))
11
+ @echo New version: $(VERSION) Old Version: $(HUGO_VERSION)
12
+ @sed -i 's/\(^HUGO_VERSION := \).*/\1 $(VERSION)/' Makefile
13
14
15
+install:
16
+ CGO_ENABLED=1 go install -tags extended github.com/gohugoio/hugo@v$(HUGO_VERSION)
0 commit comments