LoginSignup
0
0

More than 5 years have passed since last update.

make の make

Posted at

昔ながらのコマンドのソースからのインストール方法は、

./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

一言

こんなものメモってたんだなあ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0