将生成后的行放入makefile [英] Post-build line into makefile
本文介绍了将生成后的行放入makefile的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
大家好,
我希望在每个"make"之后自动将几个文件从"folderA"复制到"folderB".
有谁知道如何在生成文件中添加构建后的代码行?
问候,
Yasir
p.s. Linux noob在这里.
Hello guys,
I would like several files to be copied from "folderA" to "folderB" automatically after each "make".
Does anyone know how to add a post-build line into the makefile?
Regards,
Yasir
p.s. Linux noob here.
推荐答案
您可以在makefile中编写shell命令
在makefile中的最后一个make命令之后,输入复制命令
全部:example.o
you can write shell command in makefile
after last make command in your makefile, enter your copy command
all: example.o
(CC)-o application_name example.o -I.
cp -r folderA/* folderB/*
(CC) -o application_name example.o -I.
cp -r folderA/* folderB/*
在此处查找一些建议: ^ ].
—SA
Find some suggestions here: http://stackoverflow.com/questions/1612278/pre-build-step-in-makefile[^].
—SA
这篇关于将生成后的行放入makefile的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文