force rebuild if os has changed

This commit is contained in:
David Holdeman 2024-03-23 20:03:55 -05:00 committed by rusefillc
parent 0b5dde0dd8
commit 1569eb3158
1 changed files with 8 additions and 0 deletions

View File

@ -304,6 +304,14 @@ endif
# Enable precompiled header
include $(PROJECT_DIR)/rusefi_pch.mk
$(OBJS): .os-sentinel
.os-sentinel: .FORCE
if [ "$$(cat $@ 2>/dev/null)" != $(OS) ]; then \
echo $(OS) >$@; fi
.FORCE:
.PHONY: CLEAN_RULE_HOOK CLEAN_PCH_HOOK
CLEAN_RULE_HOOK: CLEAN_PCH_HOOK