cc8694cab7
All checks were successful
build and publish / build and publish (push) Successful in 1m31s
27 lines
448 B
Makefile
27 lines
448 B
Makefile
THEME := themes/gitea
|
|
PUBLIC := public
|
|
ARCHIVE := https://dl.gitea.com/theme/main.tar.gz
|
|
HUGO_PACKAGE := github.com/gohugoio/hugo@v0.111.3
|
|
|
|
.PHONY: all
|
|
all: build
|
|
|
|
.PHONY: clean
|
|
clean:
|
|
rm -rf $(PUBLIC) $(THEME)
|
|
|
|
.PHONY: server
|
|
server: $(THEME)
|
|
go run $(HUGO_PACKAGE) server
|
|
|
|
.PHONY: build
|
|
build: $(THEME)
|
|
go run $(HUGO_PACKAGE) --cleanDestinationDir
|
|
|
|
.PHONY: update
|
|
update: $(THEME)
|
|
|
|
$(THEME):
|
|
mkdir -p $@
|
|
curl -L -s $(ARCHIVE) | tar xz -C $@
|