2011年6月2日 星期四

於Ubuntu 10.10安裝headerdoc

_,._
゚Å゚)<怎麼先講使用然後才說安裝啊,喂!
⊂彡☆))Д′)


首先當然是把東西下載下來
要嘛用terminal下載
$ wget http://www.opensource.apple.com/tarballs/headerdoc/headerdoc-8.7.15.tar.gz
要嘛從「這裡」下。

然後安裝libxml2-dev
$ sudo apt-get install libxml2-dev
※這步很重要,就是因為沒安裝這個害我安裝headerdoc一直失敗!


然後先makefile再realinstall即可
$ make
$ sudo make realinstall


寫完以後可以在自己的project上的makefile上追加下面這段:
doc: *.m *.h
headerdoc2html -o Documentation *.h
gatherheaderdoc Documentation




PS:雖然與主題無關但也說一下,如果想在Mac OS上的Xcode 使用headerdoc的話,在project增加run script:
headerdoc2html -o Documentation ${SRCROOT}/*.h || true
gatherheaderdoc ${SRCROOT}/Documentation || true


沒有留言:

張貼留言