mirror of
https://git.notmuchmail.org/git/notmuch
synced 2024-11-21 18:38:08 +01:00
build: remove trailing '/.' when doing mkdir -p .deps/.
When make variable $@ does not contain directory part, $(@D) resolves as '.'. In this case .deps/$(@D) is '.deps/.' In some systems `mkdir [-p] directory/.` fails. To make this compatible with more system substitute trailing '/.' (slashdot) with '' (empty string) whenever it occurs there.
This commit is contained in:
parent
f2a3d9799d
commit
a7e072f277
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue