Mercurial > hg > octave-nkf
changeset 4227:399793c2c95a
[project @ 2002-12-18 03:31:55 by jwe]
author | jwe |
---|---|
date | Wed, 18 Dec 2002 03:31:55 +0000 |
parents | eafca8134ab6 |
children | 309e799edc5a |
files | ChangeLog Makeconf.in |
diffstat | 2 files changed, 27 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,10 @@ +2002-12-17 John W. Eaton <jwe@bevo.che.wisc.edu> + + * Makeconf.in (do-script-install, do-script-uninstall): + New macros, used in Makefiles in scripts subdirectory. + (do-script-install): Use new scripts/mkpkgadd script to construct + PKG_ADD files. + 2002-12-03 Nix <nix@esperi.demon.co.uk> * configure.in: Use AC_CHECK_DECL in conjunction with
--- a/Makeconf.in +++ b/Makeconf.in @@ -476,3 +476,23 @@ -e "s;%OCTAVE_VERSION%;\"${version}\";" $(top_srcdir)/move-if-change $@-t $@ endef + +define do-script-install +$(top_srcdir)/mkinstalldirs $(fcnfiledir)/$(script_sub_dir) +for f in $(FCN_FILES_NO_DIR); do \ + rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \ + $(INSTALL_DATA) $(srcdir)/$$f $(fcnfiledir)/$(script_sub_dir)/$$f; \ +done +$(top_srcdir)/mkpkgadd $(fcnfiledir)/$(script_sub_dir) > $(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t +if [ -n "`cat $(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t`" ]; then \ + mv $(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t $(fcnfiledir)/$(script_sub_dir)/PKG_ADD ; \ +else \ + rm -f $(fcnfiledir)/$(script_sub_dir)/PKG_ADD.t ; \ +fi +endef + +define do-script-uninstall +for f in $(FCN_FILES_NO_DIR); \ + do rm -f $(fcnfiledir)/$(script_sub_dir)/$$f; \ +done +endef