Added clean task, dropped update task and added variables

This commit is contained in:
Thomas Boerger 2016-12-08 21:42:04 +01:00
parent 0de2ca0d91
commit e76fb8e064
No known key found for this signature in database
GPG Key ID: 5A388F55283960B6
1 changed files with 7 additions and 2 deletions

View File

@ -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 $@