OSDN Git Service

* prevent from reporting error by make clean in NKF.mod directory
authorNARUSE, Yui <naruse@users.sourceforge.jp>
Sun, 20 Feb 2005 21:34:25 +0000 (21:34 +0000)
committerNARUSE, Yui <naruse@users.sourceforge.jp>
Sun, 20 Feb 2005 21:34:25 +0000 (21:34 +0000)
Makefile

index 34c3f9f..8f6c561 100644 (file)
--- a/Makefile
+++ b/Makefile
@@ -6,6 +6,8 @@ SHAR = shar
 PERL = perl
 RM = rm -rf
 VERSION = 204
+EXIST = test -f
+#EXIST = exist #nmake
 
 nkf : nkf.c config.h utf8tbl.o
        $(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o
@@ -15,7 +17,7 @@ utf8tbl.o : utf8tbl.c config.h
 
 clean:
        -$(RM) nkf.o nkf nkf.in nkf.out nkf$(VERSION) *~ *.bad utf8tbl.o
-       cd NKF.mod; make clean
+       cd NKF.mod; if $(EXIST) Makefile; then make clean; fi
 test:  nkf
        $(PERL) test.pl