]> git.notmuchmail.org Git - notmuch/blobdiff - Makefile.local
cli: sanitize tabs and newlines to spaces in notmuch search
[notmuch] / Makefile.local
index 72524eb361e4a05804c39ce3a237756f3952609b..174506c52d90b8254b3157e22064b50a16989948 100644 (file)
@@ -236,11 +236,11 @@ endif
 quiet ?= $($(shell echo $1 | sed -e s'/ .*//'))
 
 %.o: %.cc $(global_deps)
-       @mkdir -p .deps/$(@D)
+       @mkdir -p $(patsubst %/.,%,.deps/$(@D))
        $(call quiet,CXX $(CPPFLAGS) $(CXXFLAGS)) -c $(FINAL_CXXFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
 
 %.o: %.c $(global_deps)
-       @mkdir -p .deps/$(@D)
+       @mkdir -p $(patsubst %/.,%,.deps/$(@D))
        $(call quiet,CC $(CPPFLAGS) $(CFLAGS)) -c $(FINAL_CFLAGS) $< -o $@ -MD -MP -MF .deps/$*.d
 
 .PHONY : clean
@@ -325,3 +325,5 @@ DISTCLEAN := $(DISTCLEAN) .first-build-message Makefile.config
 DEPS := $(SRCS:%.c=.deps/%.d)
 DEPS := $(DEPS:%.cc=.deps/%.d)
 -include $(DEPS)
+
+.SUFFIXES: # Delete the default suffixes. Old-Fashioned Suffix Rules not used.