From cff926f86159575ca29c75ec8571727a6a2e7049 Mon Sep 17 00:00:00 2001 From: Martin Poelstra Date: Fri, 13 Feb 2015 22:53:59 +0100 Subject: [PATCH] Fix generating header dependencies, merge with 'normal' compile, force recompile when files are removed. --- Makefile | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 504bb99..79fb3bf 100644 --- a/Makefile +++ b/Makefile @@ -50,8 +50,7 @@ OBJECTS = $(addprefix $(BUILDDIR)/,$(notdir $(SOURCE:.c=.o))) all: grbl.hex $(BUILDDIR)/%.o: $(SOURCEDIR)/%.c - $(COMPILE) -c $< -o $@ - @$(COMPILE) -MM $< > $(BUILDDIR)/$*.d + $(COMPILE) -MMD -MP -c $< -o $@ .S.o: $(COMPILE) -x assembler-with-cpp -c $< -o $(BUILDDIR)/$@