本站源代码
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.

31 lines
483B

  1. THEME := themes/gitea
  2. PUBLIC := public
  3. ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
  4. .PHONY: all
  5. all: build
  6. .PHONY: clean
  7. clean:
  8. rm -rf $(PUBLIC) $(THEME)
  9. .PHONY: trans-copy
  10. trans-copy:
  11. @bash scripts/trans-copy
  12. .PHONY: server
  13. server: $(THEME)
  14. hugo server
  15. .PHONY: build
  16. build: $(THEME)
  17. hugo --cleanDestinationDir
  18. .PHONY: update
  19. update: $(THEME)
  20. $(THEME): $(THEME)/theme.toml
  21. $(THEME)/theme.toml:
  22. mkdir -p $$(dirname $@)
  23. curl -s $(ARCHIVE) | tar xz -C $$(dirname $@)
上海开阖软件有限公司 沪ICP备12045867号-1