in

Capture a FAIL in a recipe in mingw32-make


My mingw32-make makefile works perfectly fine, but I’d like to do what would seem a TRIVIAL job to me, namely emit a beep when the final link FAILS.

My current recipe is trivial enough:

mydll.dll: $(RESFILE) $(OBJFILES)
    $(LINKCALL)
    @echo .
    @echo  ************************** DLL ok **************************
    @echo .
  • it works perfectly fine. But I would like to capture a potential FAIL of the LINKCALL, and e.g. emit a beep.
    Just spent a few hours trying, but whatever else (but $(LINKCALL) ) I put into the 1st line of the recipe, appears to be sent VERBATIM to a CreateProcess, which is of course stupid – and fails.

Any idea how to detect a fail (and then take action on it) in mingw32-make?

Thanks!



Source: https://stackoverflow.com/questions/70601698/capture-a-fail-in-a-recipe-in-mingw32-make

Airbnb Explores Crypto Payments — CEO Sees ‘a Revolution Happening in Crypto’ thumbnail

Airbnb Explores Crypto Payments — CEO Sees ‘a Revolution Happening in Crypto’

Exercise #8: Phone Number Normalizer