OMake

Ubuntu で OMake をソースからまんまビルドすると OMake の -P が動かないよ

http://bugzilla.metaprl.org/cgi-bin/show_bug.cgi?id=738Ubuntu's new ld behaves a bit differently as known as ld-as-needed, and due to this, the build of OMake in Ubuntu succeeds but without persistent build capability (-P). I put a small p…

OMake でディレクトリ単位の依存性(のような物)を記述する

大阪でおまけ言うたらコレ!サンプルソースは http://camlspotter@bitbucket.org/camlspotter/omake-depend-on-dir にあるよ。 OMake って大阪のオバチャンに言わせるところの「便利やけど使いにくいわぁ」「どっちやねん!」なツールですよね! OMakeは素晴ら…

Scoping of implicit rules + Scoping of .SCANNER rules

OMake のお話。% ワイルドカードの付いているルールは .SCANNER ルールも含め、global scope では無い! つまり、関数内で % を使ったルールを書いた場合、それは関数内でしか有効にならない! これを知らなかったので、% ワイルドカードのついた .SCANNER ル…

OMake pitfall around multiple targets

Now I made a clearer example. Some bug or confusion around multiple target rules: # Checked by OMake 0.9.8.5 (release 3) build [Sat Nov 7 15:22:19 2009] on rothera from Ubuntu F1(v)= echo $'F1(v)' F1_a(v)= echo $'$(F1_a v)' F2()= echo $'F2…

Strange behavior of OMake's 0-ary functions

I've found strange behaviour of 0-ary functions in OMake 0.9.8.5. Maybe a bug. Try the following:Here, arc.tar should contain extract/hoge.txt: Extract()= println(extract tar archive) tar xvf arc.tar Extract2()= println(extract tar archive…

OMake 不思議時空

OMake で不思議な事のメモ。役に立つ人には役に立つだろう。 空文字列のリテラルが無い? 普通のクォート "" や '' は評価されても消えない 特殊クォート $"..." では " は消えるが、$"" と書くことは出来ない。 $""..."" と解釈されるため 空文字列の入った…

OMyMakefile

先日東京で OMake ビルドシステムについて情報交換する会が開かれたのですが、その成果としてこんなものを紹介してもらいました: http://code.google.com/p/omake-jp/source/browse/#hg/omymakefile omake で色々便利にする hack です Makefile で書いてある…

OMakefile で Makefile で書かれたサブプロジェクトを管理する方法

まだ安定していません。細かいところ予告なく調整していきます。既存 Makefile によるプロジェクトの omake への組み込み方は、二つあります。 OMakefile へ移植 ひとつは、Makefile を OMakefile に移植すること。Makefile が何やってるか完全に理解する必…