mirror of
https://gitea.com/gitea/blog.git
synced 2024-06-02 18:11:23 +05:30
9b44f2772e
Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-on: https://gitea.com/gitea/blog/pulls/239 Reviewed-by: Lunny Xiao <xiaolunwen@gmail.com> Reviewed-by: delvh <dev.lh@web.de> Co-authored-by: techknowlogick <techknowlogick@gitea.io> Co-committed-by: techknowlogick <techknowlogick@gitea.io>
28 lines
447 B
Makefile
28 lines
447 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 -sL $(ARCHIVE) | tar xz -C $@
|