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

  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: build-offline
  19. build-offline: $(THEME)
  20. hugo --baseURL="/" --cleanDestinationDir
  21. .PHONY: update
  22. update: $(THEME)
  23. $(THEME): $(THEME)/theme.toml
  24. $(THEME)/theme.toml:
  25. mkdir -p $$(dirname $@)
  26. curl -s $(ARCHIVE) | tar xz -C $$(dirname $@)