Follow-up Comment #1, bug #50062 (project make):

I don't really know of any way to determine whether or not you're running a
particular version of make, in a makefile portable enough that it would
provide useful output if you _weren't_ using that version of make.

For instance in your example:


ifndef GNUMAKE_VERSION
$(error "Sorry, you are not running GNU make. I must stop...)
endif


"ifndef" is a GNU make-specific capability itself: I know of no other variant
of make that supports this.  So, if you weren't using GNU make you'd get a
syntax error from your version of make as soon as you hit that line,
regardless of whether GNUMAKE_VERSION was defined or not.

    _______________________________________________________

Reply to this item at:

  <http://savannah.gnu.org/bugs/?50062>

_______________________________________________
  Message sent via/by Savannah
  http://savannah.gnu.org/


_______________________________________________
Bug-make mailing list
Bug-make@gnu.org
https://lists.gnu.org/mailman/listinfo/bug-make

Reply via email to