summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile2
1 files changed, 2 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index f83804523b..0a30ddcc85 100644
--- a/Makefile
+++ b/Makefile
@@ -226,6 +226,8 @@ $(obj)/$(1)%.o: src/$(1)%.asl
iasl -p $$(basename $$@) -tc $$(basename $$@).asl
mv $$(basename $$@).hex $$(basename $$@).c
$(CC) $$(CFLAGS) $$(if $$(subst dsdt,,$$(basename $$(notdir $$@))), -DAmlCode=AmlCode_$$(basename $$(notdir $$@))) -c -o $$@ $$(basename $$@).c
+ # keep %.o: %.c rule from catching the temporary .c file after a make clean
+ mv $$(basename $$@).c $$(basename $$@).hex
endef
# macro to define template macros that are used by use_template macro