RULES_EXPAND: Keep intermediate files

This prevents GNUmake from recreating expanded files
such as databaseVersion.h at every build.
This commit is contained in:
Andrew Johnson
2022-03-28 00:07:21 -05:00
parent 91941af992
commit 3e371da8ec
+2 -2
View File
@@ -70,12 +70,12 @@ $(EXPANDED_COM): %: %@
@$(RM) $@
$(EXPAND_TOOL) $(EXPANDFLAGS) $($@_EXPANDFLAGS) $< $@
$(EXPANDED_COMMON): $(COMMON_DIR)/%: %
@$(MV) $< $@
@$(CP) $< $@
clean: expand_clean
expand_clean:
@$(RM) $(EXPANDED) $(EXPANDED_COMMON)
@$(RM) $(EXPANDED) $(EXPANDED_COMMON) $(EXPANDED_COM)
.PRECIOUS: $(EXPANDED) $(EXPANDED_COMMON)
.PHONY: expand_clean