termux-packages/packages/lr/Makefile.patch

30 lines
855 B
Diff
Raw Normal View History

diff --git a/Makefile b/Makefile
2021-02-26 07:51:15 +01:00
index 5ef6fcd..56327c4 100644
--- a/Makefile
+++ b/Makefile
2021-02-25 16:21:39 +01:00
@@ -4,10 +4,12 @@ ZSHCOMP=_lr
CFLAGS=-g -O2 -Wall -Wno-switch -Wextra -Wwrite-strings
DESTDIR=
-PREFIX=/usr/local
+PREFIX=$(prefix)
BINDIR=$(PREFIX)/bin
MANDIR=$(PREFIX)/share/man
ZSHCOMPDIR=$(PREFIX)/share/zsh/site-functions
2021-02-25 16:15:24 +01:00
+EMACSDIR=$(PREFIX)/share/emacs/site-lisp
+VIMDIR=$(PREFIX)/share/vim/vimfiles/plugin
all: $(ALL)
2021-02-26 07:51:15 +01:00
@@ -19,5 +21,10 @@ install: FRC all
2021-02-25 16:15:24 +01:00
install -m0755 $(ALL) $(DESTDIR)$(BINDIR)
install -m0644 $(ALL:=.1) $(DESTDIR)$(MANDIR)/man1
install -m0644 $(ZSHCOMP) $(DESTDIR)$(ZSHCOMPDIR)
+ install -m0755 contrib/lrls $(DESTDIR)$(BINDIR)
2021-02-25 16:52:47 +01:00
+ install -dm0755 $(DESTDIR)$(EMACSDIR)
2021-02-25 16:15:24 +01:00
+ install -m0644 contrib/lr.el $(DESTDIR)$(EMACSDIR)
2021-02-25 16:52:47 +01:00
+ install -dm0755 $(DESTDIR)$(VIMDIR)
2021-02-25 16:15:24 +01:00
+ install -m0644 contrib/lr.vim $(DESTDIR)$(VIMDIR)
FRC: