mirror of
https://example.com
synced 2024-11-24 21:26:38 +09:00
dev: use recursive wildcard in Makefile
This commit is contained in:
parent
866234854e
commit
d0eab90c9b
2 changed files with 4 additions and 2 deletions
4
Makefile
4
Makefile
|
@ -1,5 +1,7 @@
|
||||||
T := dev/make_virtual_target
|
T := dev/make_virtual_target
|
||||||
|
|
||||||
|
recursive_wildcard=$(foreach d, $(wildcard $(1:=/*)), $(call recursive_wildcard, $d, $2) $(filter $(subst *, %, $2), $d))
|
||||||
|
|
||||||
PACKAGE_JSONS := package.json
|
PACKAGE_JSONS := package.json
|
||||||
PACKAGE_JSONS += packages/backend/package.json
|
PACKAGE_JSONS += packages/backend/package.json
|
||||||
PACKAGE_JSONS += packages/client/package.json
|
PACKAGE_JSONS += packages/client/package.json
|
||||||
|
@ -8,7 +10,7 @@ PACKAGE_JSONS += packages/megalodon/package.json
|
||||||
PACKAGE_JSONS += packages/sw/package.json
|
PACKAGE_JSONS += packages/sw/package.json
|
||||||
|
|
||||||
RUST_DIR := packages/backend/native-utils
|
RUST_DIR := packages/backend/native-utils
|
||||||
RUSTY_STUFF := $(foreach dir, $(RUST_DIR)/src, $(wildcard $(dir)/*))
|
RUSTY_STUFF := $(call recursive_wildcard, $(RUST_DIR)/src, *)
|
||||||
RUSTY_STUFF += $(RUST_DIR)/Cargo.toml
|
RUSTY_STUFF += $(RUST_DIR)/Cargo.toml
|
||||||
|
|
||||||
MIGRATIONS := $(foreach dir, packages/backend/migration, $(wildcard $(dir)/*))
|
MIGRATIONS := $(foreach dir, packages/backend/migration, $(wildcard $(dir)/*))
|
||||||
|
|
|
@ -12,7 +12,7 @@
|
||||||
|
|
||||||
- podman
|
- podman
|
||||||
- podman-compose
|
- podman-compose
|
||||||
- make
|
- GNU Make
|
||||||
- nodejs
|
- nodejs
|
||||||
- pnpm
|
- pnpm
|
||||||
- shellcheck
|
- shellcheck
|
||||||
|
|
Loading…
Reference in a new issue