xparq / NMAKE-Jumpstart

Single-file MSVC/NMAKE "jumpstart" Makefile for building source trees without fuss or extra tooling
0 stars 0 forks source link

Eliminate the `.` placeholder hack for empty dirs to avoid path concatenation issues... #13

Open xparq opened 1 year ago

xparq commented 1 year ago

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.