[Ecls-list] [PATCH] make install more bsd-friendly
Julian St.
der_julian at web.de
Fri Dec 5 20:28:01 UTC 2003
Hello,
I played a bit with ECL and the FreeBSD ports system again today. I have
a little patch that solves some small problems:
1. Don't use INSTALL_PROGRAM to install scripts.
2. mkinstalldir dislikes csh
Using INSTALL_SCRIPT should change almost nothing for the general case,
but it is required for installing via the ports system as it tries to
strip binaries installed via INSTALL_PROGRAM. This fails with scripts...
Using install -d works fine on FreeBSD and probably other BSDs, but I am
not sure about Linux. The Autoconf manual says that @INSTALL@ will be a
BSD-compatible install, though.
Index: src/Makefile.in
===================================================================
RCS file: /cvsroot/ecls/ecls/src/Makefile.in,v
retrieving revision 1.36
diff -u -r1.36 Makefile.in
--- src/Makefile.in 5 Dec 2003 10:22:24 -0000 1.36
+++ src/Makefile.in 6 Dec 2003 04:17:53 -0000
@@ -29,8 +29,9 @@
#
INSTALL = @INSTALL@
INSTALL_PROGRAM = @INSTALL_PROGRAM@
+INSTALL_SCRIPT = @INSTALL_SCRIPT@
INSTALL_DATA = @INSTALL_DATA@
-mkinstalldirs = $(SHELL) -c $(top_srcdir)/gc/mkinstalldirs
+INSTALL_DIRS = @INSTALL@ -d
# Files
@@ -92,11 +93,11 @@
cd c; $(MAKE) prefix=$(prefix) install
cd doc; $(MAKE) prefix=$(prefix) install
install-base:
- $(mkinstalldirs) $(bindir) $(libdir)/h
+ $(INSTALL_DIRS) $(bindir) $(libdir)/h
for i in $(TARGETS); do \
$(INSTALL) -s $$i $(bindir); \
done;
- $(INSTALL_PROGRAM) ecl-config $(bindir)
+ $(INSTALL_SCRIPT) ecl-config $(bindir)
for i in BUILD-STAMP $(LSP_LIBRARIES) $(LIBRARIES) c/dpp*
help.doc ; do \ $(INSTALL_DATA) $$i $(libdir); \
done
Regards,
--
Julian Stecklina
http://www.inf.tu-dresden.de/~s1054849/
FA38 DCD3 00EC 97B8 6DD8 D7CC 35D8 8D0E D65B 2AB5
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 187 bytes
Desc: not available
URL: <https://mailman.common-lisp.net/pipermail/ecl-devel/attachments/20031205/c37dfe58/attachment.sig>
More information about the ecl-devel
mailing list