2 # Find IP address of local system
3 # Currently it's either Linux or (default) os/x
5 UNAME_S:=$(shell uname)
6 ifeq ($(UNAME_S),Linux)
9 # Needs to be changed to "ip" instead of "ifconfig"
10 ipaddr:=$(shell /sbin/ifconfig $(interface) | grep 'inet '|cut -d':' -f2|cut -d' ' -f1)
15 ipaddr:=$(shell /sbin/ifconfig $(interface) | grep 'inet '|cut -d' ' -f2)
19 $(error Can not find IP address?)