xparq / NMAKE-Jumpstart

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

NMAKE: Cumulative target rules, even with ::, seem to kill inference rules?! #44

Open xparq opened 8 months ago

xparq commented 8 months ago

An old doc. specifically said it will not (esp. when there's no command).

However, the presence of this $(obj_dir)\main.obj:: $(HASH_INCLUDE_FILE) dep. line blocked (re)compiling main.obj if it didn't exist! :-/

$(obj_dir)\main.obj:: $(HASH_INCLUDE_FILE)

$(HASH_INCLUDE_FILE):
    $(ECHO) "   Make last commit ID available for #including..."
    $(BB) sh tooling/git/_create_commit_hash_include_file.sh

Now, with a deleted main.obj, the build proc. went straight to linking, which failed... (Adding an echo to that dep. rule confirmed that it had indeed been picked up.)