Skip to content

Commit c3d8f07

Browse files
committed
chore: update makefile
Signed-off-by: jolheiser <[email protected]>
1 parent cbc7c00 commit c3d8f07

File tree

1 file changed

+5
-12
lines changed

1 file changed

+5
-12
lines changed

Makefile

Lines changed: 5 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -203,7 +203,6 @@ help:
203203
@echo " - clean delete backend and integration files"
204204
@echo " - clean-all delete backend, frontend and integration files"
205205
@echo " - deps install dependencies"
206-
@echo " - deps-docs install docs dependencies"
207206
@echo " - deps-frontend install frontend dependencies"
208207
@echo " - deps-backend install backend dependencies"
209208
@echo " - deps-tools install tool dependencies"
@@ -375,11 +374,11 @@ lint-backend-fix: lint-go-fix lint-go-vet lint-editorconfig
375374

376375
.PHONY: lint-js
377376
lint-js: node_modules
378-
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e
377+
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e
379378

380379
.PHONY: lint-js-fix
381380
lint-js-fix: node_modules
382-
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js docs/assets/js tests/e2e --fix
381+
npx eslint --color --max-warnings=0 --ext js,vue web_src/js build *.config.js tests/e2e --fix
383382

384383
.PHONY: lint-css
385384
lint-css: node_modules
@@ -892,17 +891,11 @@ release-docs: | $(DIST_DIRS) docs
892891
tar -czf $(DIST)/release/gitea-docs-$(VERSION).tar.gz -C ./docs/public .
893892

894893
.PHONY: docs
895-
docs: deps-docs
896-
cd docs; make trans-copy clean build-offline;
897-
898-
.PHONY: deps-docs
899-
deps-docs:
900-
@hash hugo > /dev/null 2>&1; if [ $$? -ne 0 ]; then \
901-
curl -sL https://github.com/gohugoio/hugo/releases/download/v$(HUGO_VERSION)/hugo_$(HUGO_VERSION)_Linux-64bit.tar.gz | tar zxf - -C /tmp && mkdir -p ~/go/bin && mv /tmp/hugo ~/go/bin/hugo && chmod +x ~/go/bin/hugo; \
902-
fi
894+
docs:
895+
cd docs; bash scripts/trans-copy.sh;
903896

904897
.PHONY: deps
905-
deps: deps-frontend deps-backend deps-tools deps-docs
898+
deps: deps-frontend deps-backend deps-tools
906899

907900
.PHONY: deps-frontend
908901
deps-frontend: node_modules

0 commit comments

Comments
 (0)