b507acd1b6
o Fix version schema. So bump PORTEPOCH. o Fix build on 4.x on 2.0.7. So remove files/patch-nkf.c
34 lines
846 B
Text
34 lines
846 B
Text
--- Makefile.orig Mon Jun 19 23:04:35 2006
|
|
+++ Makefile Sun Jul 2 21:44:28 2006
|
|
@@ -1,17 +1,27 @@
|
|
-CC = cc
|
|
-CFLAGS = -O
|
|
+PREFIX?= /usr/local
|
|
+CC?= cc
|
|
+CFLAGS?= -O -Wall
|
|
# CFLAGS = -O3
|
|
SHAR = shar
|
|
# SHAR = shar -T
|
|
-PERL = perl
|
|
-RM = rm -rf
|
|
+PERL?= perl
|
|
+RM?= rm -rf
|
|
+INSTALL?= /usr/bin/install
|
|
+BSD_INSTALL_PROGRAM?= ${INSTALL} -s -o root -g wheel -m 555
|
|
+BSD_INSTALL_MAN?= ${INSTALL} -o root -g wheel -m 444
|
|
VERSION = 207
|
|
|
|
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:
|
|
+ ${BSD_INSTALL_PROGRAM} nkf ${PREFIX}/bin
|
|
+ ${BSD_INSTALL_MAN} nkf.1 ${PREFIX}/man/man1/nkf.1
|
|
+ ${BSD_INSTALL_MAN} nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1
|
|
|
|
clean:
|
|
-$(RM) nkf.o nkf nkf.in nkf.out nkf$(VERSION) *~ *.bad utf8tbl.o
|