Skip to content

Commit

Permalink
fixup! fixup! Makefile.base: cleanup non selected source object files
Browse files Browse the repository at this point in the history
  • Loading branch information
leandrolanzieri committed Oct 5, 2021
1 parent 5a8674c commit 92130d8
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion Makefile.base
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,9 @@ OBJECTS_TO_REMOVE = $(filter-out $(OBJ),$(OLD_OBJECTS))

$(MODULE).module compile-commands $(OBJ): | $(BINDIR)/$(MODULE)/

$(MODULE).module: $(OBJ) | $(DIRS:%=ALL--%)
$(MODULE).module: $(OBJ) $(if $(OBJECTS_TO_REMOVE),$(MODULE).cleanup) | $(DIRS:%=ALL--%)

$(MODULE).cleanup:
@# cleanup non selected source files objects
@$(RM) $(OBJECTS_TO_REMOVE)

Expand Down

0 comments on commit 92130d8

Please sign in to comment.