Tomi Ollila writes:
> 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) whe
Tomi Ollila writes:
> 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) whe
Tomi Ollila writes:
>
> still, for the time being I'd still use the patch I originally proposed
> due to the triviality I change...
>
Agreed.
d
Tomi Ollila writes:
>
> still, for the time being I'd still use the patch I originally proposed
> due to the triviality I change...
>
Agreed.
d
___
notmuch mailing list
notmuch@notmuchmail.org
http://notmuchmail.org/mailman/listinfo/notmuch
On Sun, Nov 03 2013, Jed Brown wrote:
> Tomi Ollila writes:
>
>> %.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
>
> An alternative a
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.
---
Make
On Sun, Nov 03 2013, Jed Brown wrote:
> Tomi Ollila writes:
>
>> %.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
>
> An alternative a
Tomi Ollila writes:
> %.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
An alternative approach is to use directory marker files [1] to
Tomi Ollila writes:
> %.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
An alternative approach is to use directory marker files [1] to
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.
---
Make
10 matches
Mail list logo