make の make
昔ながらのコマンドのソースからのインストール方法は、
./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
一言
こんなものメモってたんだなあ。
Author And Source
この問題について(make の make), 我々は、より多くの情報をここで見つけました https://qiita.com/bunzaemon/items/1fa193ca590516b9d24d著者帰属:元の著者の情報は、元のURLに含まれています。著作権は原作者に属する。
Content is automatically searched and collected through network algorithms . If there is a violation . Please contact us . We will adjust (correct author information ,or delete content ) as soon as possible .