Assign a makefile variable value to a bash command result?

前端 未结 3 1608
长发绾君心
长发绾君心 2020-12-02 15:32

I\'m trying to assign the output of this command ( that is in my makefile ) to the makefile HEADER var like in this following line of code:

HEADER = $(shell          


        
3条回答
  •  时光取名叫无心
    2020-12-02 16:19

    The makefile tutorial suggested to use wildcard to get list of files in a directory. In your case, it means this :

    HEADERS=$(wildcard *.h)
    

提交回复
热议问题