Multiple Shell command in Makefile
I'm trying to get the version of my compilation from a text file, i'm
using this command grep -w -m 1 "V1" server.h | sed $(VERSION) 's/#define
V1[\t]//' it works fine but now i'm trying to execute it from my Makefile
using shell: VERSION=$(shell grep -w -m 1 "V1" server.h | sed $(VERSION)
's/#define V1[\t]//') but i'm not able to make it works because the "|" if
i only put one command, grep for example it runs fine, there's another way
to indicate the | to concatenate expressions? or how can i do this?
No comments:
Post a Comment