2005-11-10から1日間の記事一覧
つぎのように書けば良い. $(@D) dirname($@) $(@F) basename($@)
makeで使える自動変数のメモ. $@ The file name of the target $ The name of the first prerequisite libhoge.a: hoge.o huga.o ar curs $@ $<は libhoge.a: hoge.o huga.o ar curs libhoge.a hoge.o huga.oと展開される.