[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-ed] [PATCH] makefile: install man by default and use symlinks
From: |
Mike Frysinger |
Subject: |
[Bug-ed] [PATCH] makefile: install man by default and use symlinks |
Date: |
Wed, 31 Dec 2008 04:42:00 -0500 |
Use softlinks rather than hardlinks in the install steps.
Signed-off-by: Mike Frysinger <address@hidden>
---
Makefile.in | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/Makefile.in b/Makefile.in
index a54ed32..bd0f3ae 100644
--- a/Makefile.in
+++ b/Makefile.in
@@ -44,11 +44,11 @@ Makefile : $(VPATH)/configure $(VPATH)/Makefile.in
check : $(progname) $(VPATH)/testsuite/check.sh
@$(VPATH)/testsuite/check.sh $(VPATH)/testsuite
-install : all install-info
+install : all install-info install-man
if test ! -d $(DESTDIR)$(bindir) ; then $(INSTALL) -d
$(DESTDIR)$(bindir) ; fi
$(INSTALL_PROGRAM) ./$(progname)
$(DESTDIR)$(bindir)/$(program_prefix)$(progname)
-rm -f $(DESTDIR)$(bindir)/$(program_prefix)r$(progname)
- cd $(DESTDIR)$(bindir) ; ln $(program_prefix)$(progname)
$(program_prefix)r$(progname)
+ cd $(DESTDIR)$(bindir) ; ln -s $(program_prefix)$(progname)
$(program_prefix)r$(progname)
install-info :
if test ! -d $(DESTDIR)$(infodir) ; then $(INSTALL) -d
$(DESTDIR)$(infodir) ; fi
@@ -59,7 +59,7 @@ install-man :
if test ! -d $(DESTDIR)$(mandir)/man1 ; then $(INSTALL) -d
$(DESTDIR)$(mandir)/man1 ; fi
$(INSTALL_DATA) $(VPATH)/doc/$(progname).1
$(DESTDIR)$(mandir)/man1/$(program_prefix)$(progname).1
-rm -f $(DESTDIR)$(mandir)/man1/$(program_prefix)r$(progname).1
- cd $(DESTDIR)$(mandir)/man1 ; ln $(program_prefix)$(progname).1
$(program_prefix)r$(progname).1
+ cd $(DESTDIR)$(mandir)/man1 ; ln -s $(program_prefix)$(progname).1
$(program_prefix)r$(progname).1
install-strip : all
$(MAKE) INSTALL_PROGRAM='$(INSTALL_PROGRAM) -s' install
--
1.6.0.6
- [Bug-ed] [PATCH] makefile: install man by default and use symlinks,
Mike Frysinger <=