From e76fb8e0646f16e461ddfa9c22303f122225dfa7 Mon Sep 17 00:00:00 2001 From: Thomas Boerger Date: Thu, 8 Dec 2016 21:42:04 +0100 Subject: [PATCH] Added clean task, dropped update task and added variables --- Makefile | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 095f82f..cff7dc8 100644 --- a/Makefile +++ b/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 $@