Improve Makefile

This commit is contained in:
Gabriel Arazas 2022-05-04 12:41:25 +08:00
parent 7b22f436a6
commit 326535df7a

View File

@ -1,4 +1,11 @@
.PHONY = update
.PHONY : serve
serve:
hugo -s ./exampleSite server
.PHONY : update
update:
curl --silent --location https://api.github.com/repos/foo-dogsquared/hugo-mod-simple-icons/commits | jq '.[0].sha' --raw-output | xargs --replace='{}' hugo mod get -u "github.com/foo-dogsquared/hugo-mod-simple-icons@{}" && hugo mod tidy
.PHONY : build-demo
build-demo:
hugo -s ./exampleSite