RELEASE = $(shell uname -r) VERS = $(shell echo $(RELEASE) | awk -F- '{print $$1,"all in a days work"}') all: @echo $(RELEASE) @echo $(VERS)