The usual $(MY_BASE_DIR)/$(SUBDIR) -> /subdir errors with empty base.
The (also usual) hack of replacing empty dirs with . just to avoid this is a) a weak, brittle protection (forget it just once!...), b) results in ugly paths, c) can be avoided, too.
The cost is that avoiding it requires even more cumbersome path construction macro clutter. So, it's questionable whether it's worth it at all.
The usual
$(MY_BASE_DIR)/$(SUBDIR)
->/subdir
errors with empty base.The (also usual) hack of replacing empty dirs with
.
just to avoid this is a) a weak, brittle protection (forget it just once!...), b) results in ugly paths, c) can be avoided, too.The cost is that avoiding it requires even more cumbersome path construction macro clutter. So, it's questionable whether it's worth it at all.