开发者

create and remove subdirectory for generated files in Makefile.am

I am using autotools for my project.

While building Qt there are the generated moc_*.cpp and ui_*开发者_如何学运维.h files which I want to have them in a gen subdirectory. The directory and the generated files should be created by make and removed my make clean.

Have anyone here done this before? I'll appreciate it really much!


targetdir/bin/launcher: sourcefile1 sourcefile1 sourcefile1 | dep1
     mkdir -pv "${@D}"
     # the rest

cleaning very much depends on your makefile structure. Please post a sample if you need help


I don't know about removing the directory off the top of my head, but you can list any generated files in CLEANFILES in your Makefile.am.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜