--- Makefile.orig Sat Jan 25 09:09:12 2003 +++ Makefile Mon Feb 3 17:03:15 2003 @@ -1,18 +1,26 @@ -CC = cc -CFLAGS = -O +PREFIX?= /usr/local +CC?= cc +CFLAGS?= -O # CFLAGS = -O3 SHAR = shar # SHAR = shar -T -PERL = perl -RM = rm -rf +PERL?= perl5 +RM?= rm -rf +INSTALL?= /usr/bin/install VERSION = 204 nkf : nkf.c config.h utf8tbl.o $(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o + ./nkf -e nkf.1j > nkf.1j.euc utf8tbl.o : utf8tbl.c config.h $(CC) $(CFLAGS) -c utf8tbl.c +install: + ${INSTALL} -c -o root -g wheel -m 555 nkf ${PREFIX}/bin + ${INSTALL} -c -o root -g wheel -m 444 nkf.1 ${PREFIX}/man/man1/nkf.1 + ${INSTALL} -c -o root -g wheel -m 444 nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1 + clean: -$(RM) nkf.o nkf nkf.in nkf.out nkf$(VERSION) *~ *.bad utf8tbl.o cd NKF.mod; make clean