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.

Makefile 681B

123456789101112131415161718192021222324252627282930313233343536
  1. THEME := themes/gitea
  2. PUBLIC := public
  3. ARCHIVE := https://dl.gitea.io/theme/master.tar.gz
  4. HUGO_PACKAGE := github.com/gohugoio/hugo@v0.82.0
  5. .PHONY: all
  6. all: build
  7. .PHONY: clean
  8. clean:
  9. rm -rf $(PUBLIC) $(THEME)
  10. .PHONY: trans-copy
  11. trans-copy:
  12. bash scripts/trans-copy.sh
  13. .PHONY: server
  14. server: $(THEME)
  15. go run $(HUGO_PACKAGE) server
  16. .PHONY: build
  17. build: $(THEME)
  18. go run $(HUGO_PACKAGE) --cleanDestinationDir
  19. .PHONY: build-offline
  20. build-offline: $(THEME)
  21. go run $(HUGO_PACKAGE) --baseURL="/" --cleanDestinationDir
  22. .PHONY: update
  23. update: $(THEME)
  24. $(THEME): $(THEME)/theme.toml
  25. $(THEME)/theme.toml:
  26. mkdir -p $$(dirname $@)
  27. curl -L -s $(ARCHIVE) | tar xz -C $$(dirname $@)