18 lines
482 B
Makefile
18 lines
482 B
Makefile
.PHONY: all build deploy
|
|
|
|
all: deps build deploy
|
|
|
|
deps:
|
|
export CGO_ENABLED=1
|
|
go install -tags extended github.com/gohugoio/hugo@latest
|
|
go install gitrepo.ru/neonxp/hugoext@v1.1.0
|
|
go install gitrepo.ru/neonxp/md2gmi@v1.1.0
|
|
go install evgenykuznetsov.org/go/static-webmentions@latest
|
|
|
|
build:
|
|
hugo --minify --gc -d public
|
|
hugoext -ext gmi -pipe md2gmi
|
|
# static-webmentions -b https://neonxp.ru
|
|
|
|
deploy: build
|
|
rsync -a -P --delete ./public/ neonxp@neonxp.ru:/var/www/neonxp.ru/
|