1
0
mirror of https://git.FreeBSD.org/ports.git synced 2025-01-04 06:15:24 +00:00
freebsd-ports/japanese/yc.el/files/patch-aa
Tilman Keskinoz 5d7487c691 Update to 4.0.9
PR:		65871
Submitted by:	Takayuki Nakao
2004-04-29 16:11:37 +00:00

45 lines
1.1 KiB
Plaintext

--- Makefile.orig Tue Apr 20 00:16:34 2004
+++ Makefile Thu Apr 22 16:31:02 2004
@@ -1,10 +1,10 @@
-prefix = /usr/local
+prefix = $(PREFIX)
#exesuffix = .exe # for Windows
-EMACS = emacs
+#EMACS = emacs
#EMACS = xemacs
-elispdir = $(prefix)/share/emacs/site-lisp
+elispdir = $(LISPDIR)
#elispdir = $(prefix)/lib/$(EMACS)/site-lisp
#elispdir = $(prefix)/lib/emacs
@@ -12,8 +12,8 @@
elc = yc.elc
PROGRAM = icanna$(exesuffix)
OBJS = icanna.o
-CC = gcc
-INSTALL = install
+#CC = gcc
+#INSTALL = install
.SUFFIXES: .el .elc
@@ -31,11 +31,13 @@
install: install-bin install-el
install-bin: $(PROGRAM)
- $(INSTALL) -m 755 -s $(PROGRAM) $(INSTALL_PATH)/$(PROGRAM)
+ test -f $(INSTALL_PATH) || mkdir -p $(INSTALL_PATH)
+ $(INSTALL_PROGRAM) $(PROGRAM) $(INSTALL_PATH)/$(PROGRAM)
install-el: $(ELCS) $(SRCS)
- $(INSTALL) -m 755 $(elc) $(elispdir)/$(elc)
- $(INSTALL) -m 755 $(elc:.elc=.el) $(elispdir)/$(elc:.elc=.el)
+ test -f $(elispdir) || mkdir -p $(elispdir)
+ $(INSTALL_SCRIPT) $(elc) $(elispdir)/$(elc)
+ $(INSTALL_SCRIPT) $(elc:.elc=.el) $(elispdir)/$(elc:.elc=.el)
uninstall: uninstall-bin uninstall-el