2017-11-26 14:44:32 -07:00
|
|
|
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
|
|
|
|
|
2020-07-13 20:09:39 -06:00
|
|
|
.PHONY: build-offline
|
|
|
|
build-offline: $(THEME)
|
|
|
|
hugo --baseURL="/" --cleanDestinationDir
|
|
|
|
|
2017-11-26 14:44:32 -07:00
|
|
|
.PHONY: update
|
|
|
|
update: $(THEME)
|
|
|
|
|
2018-01-07 05:11:17 -07:00
|
|
|
$(THEME): $(THEME)/theme.toml
|
|
|
|
$(THEME)/theme.toml:
|
|
|
|
mkdir -p $$(dirname $@)
|
2021-05-26 16:03:39 -06:00
|
|
|
curl -L -s $(ARCHIVE) | tar xz -C $$(dirname $@)
|