开发者

How can I edit makefile to change Doxyfile settings?

开发者 https://www.devze.com 2023-01-19 19:37 出处:网络
I have the below code in my makefile. The makefile generates a Doxyfile with standard configurations. I w开发者_如何学运维ant to change the UML_LOOK tag to YES and GENERATE_TREEVIEW to YES without hav

I have the below code in my makefile. The makefile generates a Doxyfile with standard configurations. I w开发者_如何学运维ant to change the UML_LOOK tag to YES and GENERATE_TREEVIEW to YES without having to edit the file manually. Is there a way of passing commands to the makefile so it does the job itself?

doc:
    doxygen -g Doxyfile
    doxygen Doxyfile
    rm -rf latex


You can add sed commands to edit the Doxyfilein place just after its generation:

sed -i '/UML_LOOK.*=/s/^.*$/UML_LOOK = YES/' Doxyfile
sed -i '/GENERATE_TREEVIEW.*=/s/^.*$/GENERATE_TREEVIEW = YES/' Doxyfile

And if you don't need LaTeX output, you can change the GENERATE_LATEX option the same way instead of removing latex directory afterwards.

0

精彩评论

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

关注公众号