mirror of https://github.com/go-gitea/gitea
Git with a cup of tea, painless self-hosted git service
Mirror for internal git.with.parts use
https://git.with.parts
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
34 lines
572 B
34 lines
572 B
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 $@)
|
|
|