Skip to content

Commit b3567f2

Browse files
committed
move LICENSES_FILE as prereq to generate-go and watch-backend
1 parent 11bf95b commit b3567f2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Makefile

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -429,12 +429,12 @@ watch: ## watch everything and continuously rebuild
429429
@bash tools/watch.sh
430430

431431
.PHONY: watch-frontend
432-
watch-frontend: $(LICENSES_FILE) node-check node_modules ## watch frontend files and continuously rebuild
432+
watch-frontend: node-check node_modules ## watch frontend files and continuously rebuild
433433
@rm -rf $(WEBPACK_DEST_ENTRIES)
434434
@BROWSERSLIST_IGNORE_OLD_DATA=true NODE_ENV=development $(NODE_VARS) pnpm exec webpack --watch --progress --disable-interpret
435435

436436
.PHONY: watch-backend
437-
watch-backend: go-check ## watch backend files and continuously rebuild
437+
watch-backend: $(LICENSES_FILE) go-check ## watch backend files and continuously rebuild
438438
GITEA_RUN_MODE=dev $(GO) run $(AIR_PACKAGE) -c .air.toml
439439

440440
.PHONY: test
@@ -756,7 +756,7 @@ generate: generate-backend ## run "go generate"
756756
generate-backend: $(TAGS_PREREQ) generate-go
757757

758758
.PHONY: generate-go
759-
generate-go: $(TAGS_PREREQ)
759+
generate-go: $(TAGS_PREREQ) $(LICENSES_FILE)
760760
@echo "Running go generate..."
761761
@CC= GOOS= GOARCH= CGO_ENABLED=0 $(GO) generate -tags '$(TAGS)' ./...
762762

@@ -877,7 +877,7 @@ update-py: node-check | node_modules ## update py dependencies
877877
.PHONY: webpack
878878
webpack: $(WEBPACK_DEST) ## build webpack files
879879

880-
$(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) $(LICENSES_FILE) pnpm-lock.yaml
880+
$(WEBPACK_DEST): $(WEBPACK_SOURCES) $(WEBPACK_CONFIGS) pnpm-lock.yaml
881881
@$(MAKE) -s node-check node_modules
882882
@rm -rf $(WEBPACK_DEST_ENTRIES)
883883
@echo "Running webpack..."

0 commit comments

Comments
 (0)