X-Git-Url: http://git.sourceforge.jp/view?p=nkf%2Fnkf.git;a=blobdiff_plain;f=Makefile;h=1350832ff0c3e681bd8e70fe8e9fe4f49ec5294c;hp=0f4c1ca936f3a28a47796bd224695db9a1d9b43e;hb=ea58b3710d9b5cffbffa701ac4b3f8443a25f128;hpb=0199cbe8350ea45e4f27610d33f3b1cb57566d3f diff --git a/Makefile b/Makefile index 0f4c1ca..1350832 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,20 @@ CC = cc -CFLAGS = -O -Wall +CFLAGS = -O -Wall -pedantic # CFLAGS = -O3 SHAR = shar # SHAR = shar -T PERL = perl RM = rm -rf -VERSION = 2.0.8 +VERSION = 2.0.9 +prefix = /usr/local -nkf : nkf.c config.h utf8tbl.o - $(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o +nkf : nkf.o utf8tbl.o + $(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o -utf8tbl.o : utf8tbl.c config.h +nkf.o : nkf.c nkf.h utf8tbl.h config.h + $(CC) $(CFLAGS) -c nkf.c + +utf8tbl.o : utf8tbl.c utf8tbl.h config.h $(CC) $(CFLAGS) -c utf8tbl.c clean: @@ -26,6 +30,11 @@ perl: make ; \ make test ) +install: + cp nkf $(prefix)/bin/ + cp nkf.1 $(prefix)/man/man1/ + cp nkf.1j $(prefix)/man/ja/man1/nkf.1 + shar: -mkdir nkf-$(VERSION) -mkdir nkf-$(VERSION)/NKF.mod