gitea-website/Makefile
Thomas Boerger 5276c10a23 Automatically copy missing translations (#25)
* Automatically copy missing translations

* Added all translations to config.yaml
2016-12-25 10:32:55 +08:00

30 lines
418 B
Makefile

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: trans-copy
trans-copy:
@bash scripts/trans-copy
.PHONY: server
server: $(THEME)
hugo server
.PHONY: build
build: $(THEME)
hugo --cleanDestinationDir
.PHONY: update
update: $(THEME)
$(THEME):
mkdir -p $@
curl -s $(ARCHIVE) | tar xz -C $@