On Tue, 2009-09-22 at 15:50 -0400, Paul Smith wrote:
> This worked as expected for me:
>
> $ cat Makefile
> sc=localhost
>
> $(warning HOSTNAME is $(HOSTNAME))
>
> ifeq "$(HOSTNAME)" "$(sc)"
> $(warning is $(sc))
> else
> $(warning is not $(sc))
> endif
>
> all: ; @echo done
>
> $ HOSTNAME=notlocal make
> Makefile:3: HOSTNAME is notlocal
> Makefile:8: is not localhost
> done
>
> $ HOSTNAME=local make
> Makefile:3: HOSTNAME is local
> Makefile:8: is not localhost
> done
Duh, I mistyped the second example; here's the right one:
$ HOSTNAME=localhost make
Makefile:3: HOSTNAME is localhost
Makefile:6: is localhost
done
_______________________________________________
Help-make mailing list
[email protected]
http://lists.gnu.org/mailman/listinfo/help-make