Mercurial > hg > xemacs-beta
diff Makefile.in.in @ 4354:232d873b9705
Add support for installing bundled patches.
author | Stephen J. Turnbull <stephen@xemacs.org> |
---|---|
date | Sun, 23 Dec 2007 20:32:16 -0800 |
parents | 8140d3d3bbd3 |
children | 3af63264d320 |
line wrap: on
line diff
--- a/Makefile.in.in Sun Dec 23 15:29:17 2007 +0100 +++ b/Makefile.in.in Sun Dec 23 20:32:16 2007 -0800 @@ -491,6 +491,48 @@ #endif ${sitelispdir} +## Install bundled packages, if present. + +package_path = @LATE_PACKAGE_DIRECTORIES@ +pkgsrcdir = ${srcdir}/etc/bundled-packages + +## #### Probably we should add a rule for lib-src/make-path here. + +check-available-packages: + @if test -r ${pkgsrcdir}/bootstrap.tar.gz; \ + then echo "To install a set of bootstrap packages, type:"; \ + echo " make install-bootstrap-packages"; \ + fi; \ + if test -r ${pkgsrcdir}/xemacs-sumo.tar.gz; \ + then echo "To install the full set of non-mule packages, type:"; \ + echo " make install-nonmule-packages"; \ + fi; \ + if test -r ${pkgsrcdir}/xemacs-mule-sumo.tar.gz; \ + then echo "To install the full set of packages with mule, type:"; \ + echo " make install-all-packages"; \ + fi; + +mkpkgdir: FRC.mkdir ${MAKEPATH} + @if test -z ${package_path}; \ + then echo "not configured --with-late-packages; no place to install."; \ + exit -1; \ + elif test -e ${package_path}/xemacs-packages \ + -o -e ${package_path}/mule-packages; \ + then echo "${package_path} is installed; won't overwrite packages."; \ + exit -1; \ + fi + ${MAKEPATH} ${package_path}; + +install-bootstrap-packages: mkpkgdir + cd ${package_path}; tar xvzf ${pkgsrcdir}/bootstrap.tar.gz + +install-nonmule-packages: mkpkgdir + cd ${package_path}; tar xvzf ${pkgsrcdir}/xemacs-sumo.tar.gz + +install-all-packages: mkpkgdir + cd ${package_path}; tar xvzf ${pkgsrcdir}/xemacs-sumo.tar.gz; \ + cd ${package_path}; tar xvzf ${pkgsrcdir}/xemacs-mule-sumo.tar.gz + ## Delete all the installed files that the `install' target would ## create (but not the noninstalled files such as `make all' would ## create).