diff --git a/build.mk b/build.mk index 9b3dd97..0c59465 100644 --- a/build.mk +++ b/build.mk @@ -64,7 +64,7 @@ dox: README.md Doxyfile | apidoc $(SRC) $(INC) # Automatic dependence on included header files. .PRECIOUS: dep/%.d -dep/%.d: %.c dep +dep/%.d: $(SRC)/%.c | dep @echo " > $@" \ && $(CC) $(CPPFLAGS) -MM -MG $< > $@.$$$$ \ && sed 's|\w*\.o[ :]*| $(OBJ)/&|g' < $@.$$$$ > $@; \