Commits

Didier Verna  committed c530283

Support symlink installation.

ChangeLog addition:

2011-12-16 Didier Verna <didier@xemacs.org>

* Makefile.inc (SYMLINK): New variable.
* local.inc (SYMLINK): Override it to t.
* INSTALL: Advertise symlink installation.

doc/ChangeLog addition:

2011-12-16 Didier Verna <didier@xemacs.org>

* Makefile (install-pkg): Support symlink installation.

lisp/ChangeLog addition:

2011-12-16 Didier Verna <didier@xemacs.org>

* Makefile (install-pkg): Support symlink installation.

  • Participants
  • Parent commits d78d6f6

Comments (0)

Files changed (4)

 
 ** Edit Makefile.inc
 This file is located at the top of the distribution. It allows you to
-customize the XEmacs binary, the installation location and the programs for
-generating documentation.
+customize the XEmacs binary, the installation location, whether to install by
+symlink or copy, and the programs for generating documentation.
 
 ** Build the package
 Type `make' to do that. This builds up the elc and the info files.

File Makefile.inc

 # XEmacs 21.5:
 # PKG_DIR := /usr/local/share/xemacs/site-packages
 
+# Set to t if you want a symlink installation
+SYMLINK :=
+
 # Programs for generating the documentation:
 MAKEINFO := makeinfo
 TEXI2DVI := texi2dvi

File doc/Makefile

 ## Author:        Didier Verna <didier@xemacs.org>
 ## Maintainer:    Didier Verna <didier@xemacs.org>
 ## Created:       Sun Apr 21 21:20:28 2002
-## Last Revision: Wed Dec 14 10:45:48 2011
+## Last Revision: Fri Dec 16 16:23:02 2011
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License version 2,
 
 install-pkg: $(INFO_FILES)
 	install -d $(INFO_DIR)
+ifeq ($(SYMLINK),)
 	install -m 644 $(ALL_INFO_FILES) $(INFO_DIR)/
+else
+	ln -s $(abspath $(ALL_INFO_FILES)) $(INFO_DIR)/
+endif
 
 uninstall-pkg:
 	cd $(INFO_DIR) && rm -f $(ALL_INFO_FILES)

File lisp/Makefile

 ## Author:        Didier Verna <didier@xemacs.org>
 ## Maintainer:    Didier Verna <didier@xemacs.org>
 ## Created:       Wed Mar  1 13:25:19 2000
-## Last Revision: Wed Dec 14 10:15:18 2011
+## Last Revision: Fri Dec 16 16:22:45 2011
 
 ## This program is free software; you can redistribute it and/or modify
 ## it under the terms of the GNU General Public License version 2,
 
 install-pkg: $(ELC_FILES)
 	install -d -m 755 $(EL_DIR)
+ifeq ($(SYMLINK),)
 	install -m 644 $(ALL_EL_FILES) $(ELC_FILES) $(EL_DIR)/
+else
+	ln -s $(abspath $(ALL_EL_FILES)) $(abspath $(ELC_FILES)) $(EL_DIR)/
+endif
 
 uninstall-pkg:
 	test -d $(EL_DIR) && rm -fr $(EL_DIR)