Skip to content

Commit

Permalink
RULES_EXPAND: Keep intermediate files
Browse files Browse the repository at this point in the history
This prevents GNUmake from recreating expanded files
such as databaseVersion.h at every build.
  • Loading branch information
anjohnson committed Mar 28, 2022
1 parent 91941af commit 3e371da
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions configure/RULES_EXPAND
Expand Up @@ -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
Expand Down

0 comments on commit 3e371da

Please sign in to comment.