Skip to content

Commit dd1a27c

Browse files
committed
Fix Makefile to correctly detect changes in src/next-wakeup
1 parent be083fc commit dd1a27c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Makefile

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
SRC_FILES := $(shell find src -name '*.sh' -o -name '*.png')
22
HT_SRC_FILES := $(shell find src/third_party/ht/src -name '*.rs')
3+
NEXT_WAKEUP_SRC_FILES := $(shell find src/next-wakeup/src -name '*.rs')
34
TARGET_FILES := $(SRC_FILES:src/%=dist/%)
45

56
dist: dist/next-wakeup dist/ht dist/local/state ${TARGET_FILES}
@@ -12,7 +13,7 @@ dist/%: src/%
1213
@mkdir -p $(@D)
1314
@cp "$<" "$@"
1415

15-
dist/next-wakeup: src/next-wakeup/src/**/*.rs
16+
dist/next-wakeup: ${NEXT_WAKEUP_SRC_FILES}
1617
cd src/next-wakeup && cross build --release --target arm-unknown-linux-musleabi
1718
cp src/next-wakeup/target/arm-unknown-linux-musleabi/release/next-wakeup dist/
1819

0 commit comments

Comments
 (0)