xparq / bbmake

Tinkering with rmyorston's pdpmake
https://frippery.org/make
Other
0 stars 0 forks source link

Inline files, a'la NMAKE (or like GNU make's define?) #4

Open xparq opened 1 year ago

xparq commented 1 year ago

Start with an approximation of define; instead of \ at line-ends escaping the newline as space, a \n there keep the newlines instead! No need for define for simple cases (of a few lines only).


It's a shame that only the (otherwise infamously crippled*) NMAKE has this fantastically useful feature. GNU make has its multiline macros created with define, which is also very nice, but it still won't spare you the tedium of actually creating & (optionally) deleting intermediate work files.


* Well, it has a whole bunch of half-features, which, had their promise been followed through, could make NMAKE a very serious tool even today: it has its clever and powerful batch mode, its fantastic inline files, or small handy things like the !message directive etc., but, e.g.: