From 9d7c7f82441f4fa531636a5a73b97dd63da864f0 Mon Sep 17 00:00:00 2001 From: Gerhard Rieger Date: Sun, 21 Sep 2008 18:05:53 +0200 Subject: [PATCH] Makefile now supports datarootdir --- CHANGES | 3 +++ Makefile.in | 5 +++-- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/CHANGES b/CHANGES index e78e07a..04443c7 100644 --- a/CHANGES +++ b/CHANGES @@ -35,6 +35,9 @@ corrections: replaced the select() calls by poll() to cleanly fix the problems with many file descriptors already open + Makefile now supports datarootdir (thanks to Camillo Lugaresi for + providing the patch) + ####################### V 1.6.0.1: new features: diff --git a/Makefile.in b/Makefile.in index 583985b..e5b1f29 100644 --- a/Makefile.in +++ b/Makefile.in @@ -15,6 +15,7 @@ exec_prefix = @exec_prefix@ BINDEST = @bindir@ +datarootdir = @datarootdir@ MANDEST = @mandir@ srcdir = @srcdir@ @@ -124,13 +125,13 @@ doc: doc/xio.help strip: progs strip $(PROGS) -install: progs doc/socat.1 +install: progs $(srcdir)/doc/socat.1 mkdir -p $(DESTDIR)$(BINDEST) $(INSTALL) -m 755 socat $(DESTDIR)$(BINDEST) $(INSTALL) -m 755 procan $(DESTDIR)$(BINDEST) $(INSTALL) -m 755 filan $(DESTDIR)$(BINDEST) mkdir -p $(DESTDIR)$(MANDEST)/man1 - $(INSTALL) -m 644 doc/socat.1 $(DESTDIR)$(MANDEST)/man1/ + $(INSTALL) -m 644 $(srcdir)/doc/socat.1 $(DESTDIR)$(MANDEST)/man1/ uninstall: rm -f $(DESTDIR)$(BINDEST)/socat