tmux/tmux-1.0-02_fix_wrong_location.diff

60 lines
1.3 KiB
Diff
Raw Normal View History

2011-04-10 08:38:56 +00:00
# correct directory /usr/local
--- a/GNUmakefile
+++ b/GNUmakefile
2010-07-19 05:13:34 +00:00
@@ -23,7 +23,7 @@
2009-11-09 21:27:51 +00:00
CC?= cc
CFLAGS+= -DBUILD="\"$(VERSION)\""
-LDFLAGS+= -L/usr/local/lib
+LDFLAGS+= -L/usr/lib
LIBS+=
2009-11-09 21:27:51 +00:00
# Sun CC
2010-07-19 05:13:34 +00:00
@@ -51,7 +51,7 @@
endif
endif
-PREFIX?= /usr/local
2011-04-10 08:38:56 +00:00
+PREFIX?= /usr/
2010-07-19 05:13:34 +00:00
INSTALL?= install
INSTALLDIR= $(INSTALL) -d
INSTALLBIN= $(INSTALL) -m 555
@@ -81,7 +81,7 @@
install: all
$(INSTALLDIR) $(DESTDIR)$(PREFIX)/bin
$(INSTALLBIN) tmux $(DESTDIR)$(PREFIX)/bin/tmux
- $(INSTALLDIR) $(DESTDIR)$(PREFIX)/man/man1
- $(INSTALLMAN) tmux.1 $(DESTDIR)$(PREFIX)/man/man1/tmux.1
2011-04-10 08:38:56 +00:00
+ $(INSTALLDIR) $(DESTDIR)$(PREFIX)share/man/man1
+ $(INSTALLMAN) tmux.1 $(DESTDIR)$(PREFIX)share/man/man1/tmux.1
-include .depend
2011-04-10 08:38:56 +00:00
--- a/Makefile
+++ b/Makefile
2010-07-19 05:13:34 +00:00
@@ -24,7 +24,7 @@
CC?= cc
CFLAGS+= -DBUILD="\"$(VERSION)\""
-LDFLAGS+= -L/usr/local/lib
+LDFLAGS+= -L/usr/lib
LIBS+=
.ifdef FDEBUG
2010-07-19 05:13:34 +00:00
@@ -47,7 +47,7 @@
.endif
.endif
-PREFIX?= /usr/local
2011-04-10 08:38:56 +00:00
+PREFIX?= /usr/
2010-07-19 05:13:34 +00:00
INSTALL?= install
INSTALLDIR= ${INSTALL} -d
INSTALLBIN= ${INSTALL} -m 555
@@ -80,5 +80,5 @@
install: all
${INSTALLDIR} ${DESTDIR}${PREFIX}/bin
${INSTALLBIN} tmux ${DESTDIR}${PREFIX}/bin/
- ${INSTALLDIR} ${DESTDIR}${PREFIX}/man/man1
- ${INSTALLMAN} tmux.1 ${DESTDIR}${PREFIX}/man/man1/
+ ${INSTALLDIR} ${DESTDIR}${PREFIX}/share/man/man1
+ ${INSTALLMAN} tmux.1 ${DESTDIR}${PREFIX}/share/man/man1/