2013-04-16 13:33:36 +02:00
|
|
|
---
|
|
|
|
Makefile.in | 8 ++++++--
|
|
|
|
Makefile.include.in | 1 +
|
|
|
|
doc/Makefile.in | 31 ++++++++++---------------------
|
|
|
|
src/Makefile.in | 19 ++++++++++---------
|
|
|
|
4 files changed, 27 insertions(+), 32 deletions(-)
|
|
|
|
|
2010-09-09 14:55:44 +02:00
|
|
|
Index: Makefile.in
|
|
|
|
===================================================================
|
2013-04-16 13:33:36 +02:00
|
|
|
--- Makefile.in.orig 2012-10-26 23:21:38.000000000 +0200
|
|
|
|
+++ Makefile.in 2013-04-16 11:42:15.933917724 +0200
|
|
|
|
@@ -65,9 +65,13 @@ install-strip:
|
2006-12-19 00:16:41 +01:00
|
|
|
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) $(STRIP)' install
|
|
|
|
|
|
|
|
installdirs:
|
|
|
|
- $(MKDIR) $(libdir) $(bindir) $(sbindir) $(includedir) $(sysconfdir); \
|
2010-09-09 14:55:44 +02:00
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(libdir)
|
2006-12-19 00:16:41 +01:00
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(bindir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(sbindir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(includedir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(sysconfdir); \
|
2010-09-09 14:55:44 +02:00
|
|
|
if test "x$(ELISP)" != "x" ; then \
|
2006-12-19 00:16:41 +01:00
|
|
|
- $(MKDIR) $(lispdir) ; \
|
2010-09-09 14:55:44 +02:00
|
|
|
+ $(MKDIR) $(DESTDIR)$(lispdir) ; \
|
2006-12-19 00:16:41 +01:00
|
|
|
fi
|
|
|
|
|
|
|
|
### GENERIC
|
2010-09-09 14:55:44 +02:00
|
|
|
Index: Makefile.include.in
|
|
|
|
===================================================================
|
2013-04-16 13:33:36 +02:00
|
|
|
--- Makefile.include.in.orig 2012-10-26 23:21:38.000000000 +0200
|
|
|
|
+++ Makefile.include.in 2013-04-16 11:42:15.933917724 +0200
|
2010-09-09 14:55:44 +02:00
|
|
|
@@ -43,6 +43,7 @@ YACC = @YACC@
|
2006-12-19 00:16:41 +01:00
|
|
|
INSTALL = @INSTALL@
|
|
|
|
INSTALL_PROGRAM = @INSTALL_PROGRAM@
|
|
|
|
INSTALL_DATA = @INSTALL_DATA@
|
|
|
|
+INSTALL_DIR = @INSTALL@ -d
|
|
|
|
LN_S = @LN_S@
|
|
|
|
EMACS = @EMACS@
|
|
|
|
ELISP = @ELISP@
|
2010-09-09 14:55:44 +02:00
|
|
|
Index: doc/Makefile.in
|
|
|
|
===================================================================
|
2013-04-16 13:33:36 +02:00
|
|
|
--- doc/Makefile.in.orig 2012-10-26 23:21:38.000000000 +0200
|
|
|
|
+++ doc/Makefile.in 2013-04-16 11:42:15.933917724 +0200
|
2010-09-09 14:55:44 +02:00
|
|
|
@@ -111,29 +111,18 @@ gpmdoc.ps: gpm.ps
|
2006-12-19 00:16:41 +01:00
|
|
|
# install & uninstall
|
|
|
|
|
|
|
|
installdirs:
|
|
|
|
- $(MKDIR) $(man1dir) $(man7dir) $(man8dir) $(infodir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(man1dir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(man7dir)
|
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(man8dir)
|
2010-09-09 14:55:44 +02:00
|
|
|
+ $(INSTALL_DIR) $(DESTDIR)$(infodir)
|
2006-12-19 00:16:41 +01:00
|
|
|
|
|
|
|
install: all installdirs
|
|
|
|
- $(INSTALL_DATA) -m 644 mev.1 $(man1dir)
|
|
|
|
- $(INSTALL_DATA) -m 644 mouse-test.1 $(man1dir)
|
|
|
|
- $(INSTALL_DATA) -m 644 gpm-root.1 $(man1dir)
|
|
|
|
- $(INSTALL_DATA) -m 644 gpm-types.7 $(man7dir)
|
|
|
|
- $(INSTALL_DATA) -m 644 gpm.8 $(man8dir)
|
|
|
|
- $(INSTALL_DATA) -m 644 $(srcdir)/gpm.info $(infodir)
|
|
|
|
- # Use install-info if available
|
|
|
|
- -if $(SHELL) -c 'install-info --version' >/dev/null 2>&1; then \
|
|
|
|
- if [ -f $(infodir)/dir ] ; then \
|
|
|
|
- install-info --dir-file=$(infodir)/dir $(infodir)/gpm.info; \
|
|
|
|
- fi; \
|
|
|
|
- fi
|
|
|
|
- #itz Sat Dec 26 23:21:05 PST 1998
|
|
|
|
- #i keep all my infopages compressed and i'm tired to do it by
|
|
|
|
- #hand, so check if there are any compressed pages and do this
|
|
|
|
- #one too
|
|
|
|
- -ls $(infodir)/*[-.]info.gz >/dev/null 2>&1 \
|
|
|
|
- && gzip -f $(infodir)/gpm.info
|
|
|
|
- # Hmm.... shouldn't man pages be compressed too?
|
|
|
|
- # maybe they should, but at least at my system they are not.
|
|
|
|
+ $(INSTALL_DATA) -m 644 mev.1 $(DESTDIR)$(man1dir)
|
|
|
|
+ $(INSTALL_DATA) -m 644 mouse-test.1 $(DESTDIR)$(man1dir)
|
|
|
|
+ $(INSTALL_DATA) -m 644 gpm-root.1 $(DESTDIR)$(man1dir)
|
|
|
|
+ $(INSTALL_DATA) -m 644 gpm-types.7 $(DESTDIR)$(man7dir)
|
|
|
|
+ $(INSTALL_DATA) -m 644 gpm.8 $(DESTDIR)$(man8dir)
|
|
|
|
+ $(INSTALL_DATA) -m 644 $(srcdir)/gpm.info $(DESTDIR)$(infodir)
|
|
|
|
|
|
|
|
# This potentially leaves around cached manpages,
|
|
|
|
# e.g. /var/cache/man/cat1/mev.1.gz. Deleting these is not our job,
|
2010-09-09 14:55:44 +02:00
|
|
|
Index: src/Makefile.in
|
|
|
|
===================================================================
|
2013-04-16 13:33:36 +02:00
|
|
|
--- src/Makefile.in.orig 2012-10-26 23:21:38.000000000 +0200
|
|
|
|
+++ src/Makefile.in 2013-04-16 11:47:36.772320635 +0200
|
|
|
|
@@ -104,17 +104,17 @@ check: all
|
2006-12-19 00:16:41 +01:00
|
|
|
installdirs:
|
|
|
|
|
|
|
|
install: check
|
|
|
|
- $(INSTALL_PROGRAM) gpm $(sbindir)/gpm
|
|
|
|
+ $(INSTALL_PROGRAM) gpm $(DESTDIR)$(sbindir)/gpm
|
2013-04-16 13:33:36 +02:00
|
|
|
if [ -f lib/libgpm.a ] ; then \
|
|
|
|
- $(INSTALL_DATA) -m 644 lib/libgpm.a $(libdir)/libgpm.a ; \
|
|
|
|
+ $(INSTALL_DATA) -m 644 lib/libgpm.a $(DESTDIR)$(libdir)/libgpm.a ; \
|
|
|
|
fi
|
|
|
|
- $(INSTALL_DATA) -m 644 $(srcdir)/headers/gpm.h $(includedir)/gpm.h
|
2006-12-19 00:16:41 +01:00
|
|
|
+ $(INSTALL_DATA) -m 644 $(srcdir)/headers/gpm.h $(DESTDIR)$(includedir)/gpm.h
|
|
|
|
# POSIX requires the range of a for loop be nonempty and Bash
|
|
|
|
# 2.x goes along; unfortunately that means an additional
|
|
|
|
# headache in cases like this
|
|
|
|
if test "x@SHLIB@" != "x" ; then \
|
2010-09-09 14:55:44 +02:00
|
|
|
- $(INSTALL_DATA) -m 644 lib/libgpm.so.@abi_full@ $(libdir)/libgpm.so.@abi_full@ ; \
|
|
|
|
- cd $(libdir) && $(LN_S) -f libgpm.so.@abi_full@ libgpm.so.@abi_lev@ ; \
|
2013-04-16 13:33:36 +02:00
|
|
|
+ $(INSTALL_DATA) -m 644 lib/libgpm.so.@abi_full@ $(DESTDIR)$(libdir)/libgpm.so.@abi_full@ ; \
|
|
|
|
+ cd $(DESTDIR)$(libdir) && $(LN_S) -f libgpm.so.@abi_full@ libgpm.so.@abi_lev@ ; \
|
2010-09-09 14:55:44 +02:00
|
|
|
echo "WARNING: We installed a lib, you should now call ldconfig" ; \
|
|
|
|
echo "f.i.: ldconfig -n -l $(libdir)/libgpm.so.@abi_full@" ; \
|
|
|
|
echo "Or to update everything just type ldconfig" ; \
|
2013-04-16 13:33:36 +02:00
|
|
|
@@ -124,7 +124,7 @@ install: check
|
2006-12-19 00:16:41 +01:00
|
|
|
|
|
|
|
# prog/
|
|
|
|
for i in $(PROG); do \
|
|
|
|
- $(INSTALL_PROGRAM) $$i $(bindir)/`echo $$i | sed 's,prog/,,'` ;\
|
|
|
|
+ $(INSTALL_PROGRAM) $$i $(DESTDIR)$(bindir)/`echo $$i | sed 's,prog/,,'` ;\
|
|
|
|
done
|
|
|
|
|
|
|
|
install-strip:
|
2013-04-16 13:33:36 +02:00
|
|
|
@@ -133,10 +133,11 @@ install-strip:
|
|
|
|
# Note: this leaves around /usr/lib/libgpm.so.1 and /usr/lib/libgpm.so.1.nn
|
|
|
|
# This is probably the right thing, because programs may be linked to it
|
|
|
|
uninstall:
|
|
|
|
- rm -f $(bindir)/mev $(bindir)/gpm-root $(bindir)/disable-paste \
|
|
|
|
- $(sbindir)/gpm $(libdir)/libgpm.a $(libdir)/libgpm.so $(includedir)/gpm.h
|
|
|
|
+ rm -f $(DESTDIR)$(bindir)/mev $(DESTDIR)$(bindir)/gpm-root $(DESTDIR)$(bindir)/disable-paste \
|
|
|
|
+ $(DESTDIR)$(sbindir)/gpm $(DESTDIR)$(libdir)/libgpm.a $(DESTDIR)$(libdir)/libgpm.so \
|
|
|
|
+ $(DESTDIR) $(includedir)/gpm.h
|
|
|
|
for i in $(PROG); do \
|
|
|
|
- rm -f $(bindir)/$$i ;\
|
|
|
|
+ rm -f $(DESTDIR)$(bindir)/$$i ;\
|
|
|
|
done
|
|
|
|
|
|
|
|
# Configure & unconfigure
|