multiple makefiles in one directory

后端 未结 4 1651
一个人的身影
一个人的身影 2020-12-13 03:28

I have a makefile in a directory of mine which builds scripts with certain environment variables set. What if I want to create another makefile in the same directory with di

4条回答
  •  夕颜
    夕颜 (楼主)
    2020-12-13 04:10

    You can name makefile whatever you want. I usually name it like somename.mk. To use it later you need to tell make what makefile you want. Use -f option for this:

    make -f somename.mk
    

提交回复
热议问题