Skip to content

Commit

Permalink
*clean targets do not need dependencies file. (#152)
Browse files Browse the repository at this point in the history
  • Loading branch information
p-costa committed Feb 14, 2025
1 parent 61a8425 commit c9131ea
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,10 @@ $(DEPS):
@$(foreach file, $(SRCS), $(GD) $(file) >> $(DEPS))

# Define all module interdependencies
ifneq ($(filter clean libsclean allclean,$(MAKECMDGOALS)),)
else
-include $(DEPS)
endif
$(foreach dep, $(OBJS), $(eval $(dep): $($(dep))))

# Cleanup, filter to avoid removing source code by accident
Expand Down

0 comments on commit c9131ea

Please sign in to comment.