X-Git-Url: http://git.sourceforge.jp/view?p=nkf%2Fnkf.git;a=blobdiff_plain;f=Makefile;h=e66b30c0462ec2d965c94c3c40b06305b1747f09;hp=717bb3c06afe6809b111a8520efd12c2ee960b85;hb=4649fab49d6e369820a53b6e8349363b1e0201a4;hpb=f2062002758757aa4bb9a8e6aad3140d93a39bbe diff --git a/Makefile b/Makefile index 717bb3c..e66b30c 100644 --- a/Makefile +++ b/Makefile @@ -1,14 +1,20 @@ CC = cc -CFLAGS = -O -Wall -pedantic +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 + +.PHONY: clean install test tar shar nkf : nkf.o utf8tbl.o - $(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o + $(CC) $(CFLAGS) $(LDFLAGS) -o nkf nkf.o utf8tbl.o nkf.o : nkf.c nkf.h utf8tbl.h config.h $(CC) $(CFLAGS) -c nkf.c @@ -29,6 +35,30 @@ perl: make ; \ make test ) +python2: + ( cd NKF.python2 ; \ + $(PYTHON2) setup.py build ) + +python3: + ( cd NKF.python3 ; \ + $(PYTHON3) setup.py build ) + +install: install-main install-man install-man-ja + +install-main: + -$(MKDIR) $(prefix)/bin + cp -f nkf $(prefix)/bin/ + +install-man: + -$(MKDIR) $(prefix)/man + -$(MKDIR) $(prefix)/man/man1 + cp -f nkf.1 $(prefix)/man/man1/ + +install-man-ja: + -$(MKDIR) $(prefix)/man/ja + -$(MKDIR) $(prefix)/man/ja/man1 + cp -f nkf.1j $(prefix)/man/ja/man1/nkf.1 + shar: -mkdir nkf-$(VERSION) -mkdir nkf-$(VERSION)/NKF.mod @@ -48,7 +78,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)