4d4a17bf4b
PR: ports/152265 Submitted by: Tsurutani Naoki turutani a_t scphys kyoto-u ac jp
53 lines
1.3 KiB
Text
53 lines
1.3 KiB
Text
--- Makefile.orig 2009-11-17 09:33:04.000000000 +0900
|
|
+++ Makefile 2010-02-15 23:02:44.471546444 +0900
|
|
@@ -1,18 +1,22 @@
|
|
-CC = cc
|
|
-CFLAGS = -g -O2 -Wall -pedantic
|
|
+CC?= cc
|
|
+CFLAGS?= -g -O2 -Wall -pedantic
|
|
# CFLAGS = -O3
|
|
SHAR = shar
|
|
# SHAR = shar -T
|
|
-PERL = perl
|
|
-RM = rm -rf
|
|
+PERL?= perl
|
|
+RM?= rm -rf
|
|
VERSION = 2.1.1
|
|
MKDIR = mkdir
|
|
-prefix = /usr/local
|
|
+PREFIX?= /usr/local
|
|
+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
|
|
|
|
.PHONY: clean install test tar shar
|
|
|
|
nkf : nkf.o utf8tbl.o
|
|
$(CC) $(CFLAGS) -o nkf nkf.o utf8tbl.o
|
|
+ ./nkf -e nkf.1j > nkf.1j.euc
|
|
|
|
nkf.o : nkf.c nkf.h utf8tbl.h config.h
|
|
$(CC) $(CFLAGS) -c nkf.c
|
|
@@ -34,14 +38,14 @@
|
|
make test )
|
|
|
|
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
|
|
+ -$(MKDIR) $(PREFIX)/bin
|
|
+ -$(MKDIR) $(PREFIX)/man
|
|
+ -$(MKDIR) $(PREFIX)/man/man1
|
|
+ -$(MKDIR) $(PREFIX)/man/ja
|
|
+ -$(MKDIR) $(PREFIX)/man/ja/man1
|
|
+ ${BSD_INSTALL_PROGRAM} nkf ${PREFIX}/bin/
|
|
+ ${BSD_INSTALL_MAN} nkf.1 ${PREFIX}/man/man1/
|
|
+ ${BSD_INSTALL_MAN} nkf.1j.euc ${PREFIX}/man/ja/man1/nkf.1
|
|
|
|
shar:
|
|
-mkdir nkf-$(VERSION)
|