blog/Makefile

16 lines
356 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
build:
hugo --minify
hugoext -ext gmi -pipe md2gmi
deploy: build
rsync -a -P --delete ./public/ neonxp.ru:/var/www/neonxp.ru/