昔ながらのコマンドのソースからのインストール方法は、
./configure && make && make install
んじゃ、コレも make にしちゃえば?
Makefile
tgt ?=
confopt ?=
makeopt ?=
taropt ?= zxf
arc := $(wildcard $(tgt)*)
all: .PHONY
.PHONY:
tar $(taropt) $(arc)
cd $(tgt) && ./configure --prefix=/Users/XXX/cmd/ $(confopt)
make -C $(tgt) $(makeopt)
make -C $(tgt) install
rm -rf $(tgt)
実行
$ wget -q http://ftp.gnu.org/gnu/wget/wget-1.12.tar.gz
$ tgt=wget-1.12 confopt='--with-ssl=openssl' make
一言
こんなものメモってたんだなあ。