X-Git-Url: http://git.sourceforge.jp/view?a=blobdiff_plain;f=Makefile;h=f0c5e9db5941164ac57bac95abc6b6f374c937a5;hb=c778b37ecf951d50195768deea665a3ebc9f9af6;hp=b74999de86ebbb1edd42f78612111de2c4ade3b4;hpb=9fb9e3737f04446702920bc6587ff80a8d11d74c;p=nkf%2Fnkf.git diff --git a/Makefile b/Makefile index b74999d..f0c5e9d 100644 --- a/Makefile +++ b/Makefile @@ -1,16 +1,25 @@ -CC = pcc -CFLAGS = -O --stats +CC = cc +CFLAGS = -g -O2 -Wall -pedantic # CFLAGS = -O3 SHAR = shar # SHAR = shar -T PERL = perl RM = rm -rf -VERSION = 2.0.8 +VERSION = 2.1.3 +MKDIR = mkdir +prefix = /usr/local +PYTHON2 = python +PYTHON3 = python -nkf : nkf.c config.h utf8tbl.o - $(CC) $(CFLAGS) -o nkf nkf.c utf8tbl.o +.PHONY: clean install test tar shar -utf8tbl.o : utf8tbl.c config.h +nkf : nkf.o utf8tbl.o + $(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o + +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 +35,24 @@ perl: make ; \ make test ) +python2: + ( cd NKF.python2 ; \ + $(PYTHON2) setup.py build ) + +python3: + ( cd NKF.python3 ; \ + $(PYTHON3) setup.py build ) + +install: + -$(MKDIR) $(prefix)/bin + -$(MKDIR) $(prefix)/man + -$(MKDIR) $(prefix)/man/man1 + -$(MKDIR) $(prefix)/man/ja + -$(MKDIR) $(prefix)/man/ja/man1 + cp -f nkf $(prefix)/bin/ + cp -f nkf.1 $(prefix)/man/man1/ + cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1 + shar: -mkdir nkf-$(VERSION) -mkdir nkf-$(VERSION)/NKF.mod @@ -45,7 +72,7 @@ tar: -mkdir nkf-$(VERSION)/NKF.mod for file in `cat MANIFEST`; \ do \ - nkf -j -m0 $$file > nkf-$(VERSION)/$$file ; \ + cp $$file nkf-$(VERSION)/$$file ; \ done tar cf nkf-$(VERSION).tar nkf-$(VERSION) -$(RM) nkf-$(VERSION)