2016-11-10 14:01:05 +03:00
|
|
|
THEME := themes/gitea
|
2016-12-08 23:41:59 +03:00
|
|
|
PUBLIC := public
|
|
|
|
ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
|
2016-11-10 14:01:05 +03:00
|
|
|
|
|
|
|
.PHONY: all
|
|
|
|
all: build
|
|
|
|
|
2016-12-08 23:41:59 +03:00
|
|
|
.PHONY: clean
|
|
|
|
clean:
|
|
|
|
rm -rf $(PUBLIC) $(THEME)
|
|
|
|
|
2016-12-25 10:03:40 +03:00
|
|
|
.PHONY: trans-copy
|
|
|
|
trans-copy:
|
|
|
|
@bash scripts/trans-copy
|
|
|
|
|
2016-11-10 14:01:05 +03:00
|
|
|
.PHONY: server
|
|
|
|
server: $(THEME)
|
|
|
|
hugo server
|
|
|
|
|
|
|
|
.PHONY: build
|
|
|
|
build: $(THEME)
|
|
|
|
hugo --cleanDestinationDir
|
|
|
|
|
|
|
|
.PHONY: update
|
|
|
|
update: $(THEME)
|
|
|
|
|
|
|
|
$(THEME):
|
2016-12-08 21:26:16 +03:00
|
|
|
mkdir -p $@
|
2016-12-08 23:41:59 +03:00
|
|
|
curl -s $(ARCHIVE) | tar xz -C $@
|