]> git.sur5r.net Git - bacula/bacula/blobdiff - bacula/src/win32/Makefile.rules
ebl typo fix
[bacula/bacula] / bacula / src / win32 / Makefile.rules
index 82d6c0066cbfeca8ff7184bfd489b6c66a31ef1d..72c93c86ba9e512ca105ad70088f698fd878523d 100644 (file)
@@ -7,6 +7,7 @@
 
 define clean_obj
        $(ECHO_CMD)rm -f $(1) $(patsubst %.o,%.d,$(filter-out %.res,$(1)))
+       $(ECHO_CMD)rm -f $(1) $(addsuffix .d.*,$(basename $(1)))
 endef
 
 define clean_exe
@@ -66,6 +67,8 @@ $(OBJDIR)/%.d: %.c
 $(OBJDIR)/%.d: %.cpp
        $(makedep)
 
+ifneq ($(ALL_OBJS),)
 ifneq ($(MAKECMDGOALS),clean)
 include $(patsubst %.o,%.d,$(filter-out %.res,$(ALL_OBJS)))
 endif
+endif