make文件中的传递参数

问题描述 投票:0回答:1

我正在Mac上使用可视代码编写python,并且非常新以创建文件环境。我有一个make file命令,如下所示,

   mkdir mydir
   zip mydir/test test1111/mypython.py

我应该如何设置test1111的参数?谢谢。

makefile gnu-make
1个回答
0
投票
ZIP = zip

test_CONTENT = \
    test1111/mypython.py

mydir/test.zip: ${test_CONTENT}
    @mkdir -p ${@D}
    ${ZIP} $@ $^
© www.soinside.com 2019 - 2024. All rights reserved.