Subramanian Olagappan wrote:
Hi,
I am trying to convert a nmake Makefile to gnumake Makefile. Can someone help
me to convert this code snipet to gnu compatible one
!if "$(LEVEL)"<"0" || "$(LEVEL)">"2"
! error Level is not valid!
!endif
This looks like Microsoft NMAKE. In general, MS NMAKE has a much more
expressive syntax for expressions like this, so you may have some
difficulty converting. However, in this particular case, I think the
following GNU make syntax is equivalent:
ifneq ("$(LEVEL)","1")
$(error Level is not valid!)
endif
Hope that helps,
Eric Melski
Electric Cloud, Inc.
http://blog.electric-cloud.com/
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make