dev: specify the source of backend-rs/index.js in Makefile

This commit is contained in:
naskya 2024-04-07 12:23:37 +09:00
parent e4c9a91a16
commit 6a7d8c0b13
No known key found for this signature in database
GPG Key ID: 712D413B3A9FED5C
1 changed files with 7 additions and 1 deletions

View File

@ -1,3 +1,9 @@
recursive_wildcard = $(foreach d, $(wildcard $(1:=/*)), $(call recursive_wildcard, $d, $2) $(filter $(subst *, %, $2), $d))
SRC := Cargo.toml
SRC += $(call recursive_wildcard, src, *)
.PHONY: regenerate-entities
regenerate-entities:
sea-orm-cli generate entity \
@ -15,7 +21,7 @@ regenerate-entities:
src/model/entity/sea_orm_active_enums.rs
pnpm run format
index.js:
index.js: $(SRC)
NODE_OPTIONS='--max_old_space_size=3072' pnpm run build:debug
[ -f built/index.js ]
rm --force index.js