mirror of
https://gitea.com/gitea/blog
synced 2025-10-06 09:02:46 +02:00
Added clean task, dropped update task and added variables
This commit is contained in:
9
Makefile
9
Makefile
@@ -1,8 +1,14 @@
|
||||
THEME := themes/gitea
|
||||
PUBLIC := public
|
||||
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
|
||||
|
||||
.PHONY: all
|
||||
all: build
|
||||
|
||||
.PHONY: clean
|
||||
clean:
|
||||
rm -rf $(PUBLIC) $(THEME)
|
||||
|
||||
.PHONY: server
|
||||
server: $(THEME)
|
||||
hugo server
|
||||
@@ -14,7 +20,6 @@ build: $(THEME)
|
||||
.PHONY: update
|
||||
update: $(THEME)
|
||||
|
||||
.PHONY: $(THEME)
|
||||
$(THEME):
|
||||
mkdir -p $@
|
||||
curl https://dl.gitea.io/theme/master.tar.gz | tar xz -C $@
|
||||
curl -s $(ARCHIVE) | tar xz -C $@
|
||||
|
Reference in New Issue
Block a user