Forums: 公開討議 (Thread #23675)

make install 関連のバグ (2009-08-21 00:05 by efialtes #45482)

(1) case insensitive な環境だと、INSTALL と install が同一視されるため、make install で何も起こらない。環境は cygwin, mac OS X など。
(2) make install でディレクトリの有無をテストおよび作成していない。

こんな感じかなぁ。
------>8------------>8------------>8------------>8------------>8
diff -aurN nkf.orig/Makefile nkf/Makefile
--- nkf.orig/Makefile 2009-08-04 03:05:57.000000000 +0900
+++ nkf/Makefile 2009-08-20 19:40:03.000000000 +0900
@@ -6,8 +6,11 @@
PERL = perl
RM = rm -rf
VERSION = 2.0.9
+MKDIR = mkdir
prefix = /usr/local

+.PHONY: clean install test tar shar
+
nkf : nkf.o utf8tbl.o
$(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o

@@ -31,6 +34,12 @@
make test )

install:
+ - $(MKDIR) $(prefix)/bin
+ - $(MKDIR) $(prefix)/man
+ - $(MKDIR) $(prefix)/man/man1
+ - $(MKDIR) $(prefix)/man/ja
+ - $(MKDIR) $(prefix)/man/ja/man1
+
cp nkf $(prefix)/bin/
cp nkf.1 $(prefix)/man/man1/
cp nkf.1j $(prefix)/man/ja/man1/nkf.1
------>8------------>8------------>8------------>8------------>8

Reply to #45482×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login

RE: make install 関連のバグ (2009-08-21 22:30 by naruse #45504)

ありがとうございます、反映しました。

mkdir -p使えると楽なんですけどね、まぁ、nkfだとこうなるのでしょう。
Reply to #45482

Reply to #45504×

You can not use Wiki syntax
You are not logged in. To discriminate your posts from the rest, you need to pick a nickname. (The uniqueness of nickname is not reserved. It is possible that someone else could use the exactly same nickname. If you want assurance of your identity, you are recommended to login before posting.) Login