mirror of
https://github.com/go-gitea/gitea
synced 2024-11-05 01:34:25 +00:00
b92a5d8d64
* release docs along sources * use a custom offline version Co-authored-by: Gitea <gitea@fake.local>
35 lines
572 B
Makefile
35 lines
572 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: build-offline
|
|
build-offline: $(THEME)
|
|
hugo --baseURL="/" --cleanDestinationDir
|
|
|
|
.PHONY: update
|
|
update: $(THEME)
|
|
|
|
$(THEME): $(THEME)/theme.toml
|
|
$(THEME)/theme.toml:
|
|
mkdir -p $$(dirname $@)
|
|
curl -s $(ARCHIVE) | tar xz -C $$(dirname $@)
|