mikejsavage.co.uk • About • Archive • RSS • Thanks for blocking ads! Blocking ads owns: AdGuard for Safari / uBlock Origin for everything else
There's a WSLENV variable, but it's empty by default so ifdef doesn't do
what you want. ?=
can distinguish between empty and undefined, so this
works:
WSLENV ?= notwsl
ifndef WSLENV
# this runs when you _are_ in WSL
endif