[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [VM] configure problem with 8.20b
From: |
Michael |
Subject: |
Re: [VM] configure problem with 8.20b |
Date: |
Sun, 28 May 2017 19:58:38 -0800 |
User-agent: |
Mutt/1.8.2 (2017-04-18) |
* Mark Diekhans <address@hidden> [2017-05-28 16:24:41 -0700]:
>
> freebsd installed gnu make as the command gmake. So just type
> gmake rather than make. The $(MAKE) variable in makefile
> contains the actually command name, so the same make program is
> used for recursive makes.
>
> I did submit a patch that I think will make this work on
> FreeBSD, although I can only test it on Mac with the bsdmake
> command installed.
>
> Patch is attached, however it is probably easiest to type gmake ;-)
Thank you very much Mark!
I will be busy for the next day or two, but will be back with results.
Very much appreciate your help.
Patch sure looks nice :)
Mike
>
> Michael <address@hidden> writes:
> > Did you just let it replace make? That's what I saw in topics about using
> > gmake.
> > I was afraid other builds wouldn't work if make wasn't used.
> > I'm pretty much a newbie at some of that stuff :(
> >
> >
> > > Michael <address@hidden> writes:
> > > > Since gmake is used, under FreeBSD or OpenBSD, I'll try to learn gnus
> > > > and leave vm for my linux systems.
> > > > Thanks for your help :)
> > > >
> > > >
> > > > Now searching for gnus newbie helps
> > > > Mike
> > > >
> --- .emacs.bak/Makefile.in.~1~ 2011-12-27 14:19:28.000000000 -0800
> +++ Makefile.in 2017-05-27 18:40:31.000000000 -0700
> @@ -36,7 +36,10 @@
> all: vm-load.el
> @for i in $(SUBDIRS) ; do ($(MAKE) -C $$i) || exit 1; done
>
> -Makefile vm-load.el: %: config.status @srcdir@/%.in
> +vm-load.el: @srcdir@/vm-load.el.in config.status
> + ./config.status $@
> +
> +Makefile: @srcdir@/Makefile.in config.status
> ./config.status $@
>
> @srcdir@/configure: @srcdir@/configure.ac
> @@ -77,9 +80,9 @@
> exit 1; \
> fi
> -$(RM) -rf ,,package
> - cd lisp; make PACKAGEDIR=$(PKGDIR)/lisp/vm install-pkg
> - cd info; make info_dir=$(PKGDIR)/info install-pkg
> - cd src; make info_dir=$(PKGDIR)/bin install-pkg
> + cd lisp && $(MAKE) PACKAGEDIR=$(PKGDIR)/lisp/vm install-pkg
> + cd info && $(MAKE) info_dir=$(PKGDIR)/info install-pkg
> + cd src && $(MAKE) info_dir=$(PKGDIR)/bin install-pkg
> echo ";;;###autoload" > $(PKGINFO)
> echo "(package-provide 'vm'" > $(PKGINFO)
> echo " :version 0.7" >> $(PKGINFO)
> --- lisp/.emacs.bak/Makefile.in.~1~ 2011-12-27 14:19:28.000000000 -0800
> +++ lisp/Makefile.in 2017-05-27 18:56:51.000000000 -0700
> @@ -63,11 +63,9 @@
> SOURCES += u-vm-color.el
>
> # to list of object files
> -ifeq (@EMACS_FLAVOR@,emacs)
> -OBJECTS = vm-autoloads.elc vm-cus-load.elc
> -else
> -OBJECTS = auto-autoloads.elc custom-load.elc
> -endif
> +emacs_OBJECTS = vm-autoloads.elc vm-cus-load.elc
> +xemacs_OBJECTS = auto-autoloads.elc custom-load.elc
> +OBJECTS = address@hidden@_OBJECTS}
>
> OBJECTS += $(SOURCES:.el=.elc)
>
> @@ -80,6 +78,9 @@
> AUTOLOAD_PACKAGE_NAME = (setq autoload-package-name \"vm\")
> AUTOLOAD_FILE = (setq generated-autoload-file \"./auto-autoloads.el\")
>
> +# for BSDmake
> +.SUFFIXES: .el .elc
> +
>
> ##############################################################################
> # location of required programms
> RM = @RM@
> @@ -103,15 +104,13 @@
>
> FLAGS = @FLAGS@
>
> -EMACS_COMP = lispdir="$(lispdir)" srcdir="$(srcdir)" "$(EMACS_PROG)" $(FLAGS)
> -
> -export OTHERDIRS = @OTHERDIRS@
> +EMACS_COMP = address@hidden@ "$(EMACS_PROG)" $(FLAGS)
>
> SYMLINKS = @SYMLINKS@
> LINKPATH = @LINKPATH@
>
> .el.elc:
> - "$(EMACS_PROG)" $(FLAGS) -f batch-byte-compile $<
> + $(EMACS_COMP) -f batch-byte-compile $<
>
>
> ##############################################################################
> all: $(OBJECTS)
> @@ -134,7 +133,7 @@
> -$(RM) -f $@
> echo > $@
> (build_dir="`pwd`"; cd "@srcdir@"; \
> - "$(EMACS_PROG)" $(FLAGS) -l autoload \
> + $(EMACS_COMP) -l autoload \
> -f vm-built-autoloads "@abs_builddir@/$@" "`pwd`")
> echo "(custom-add-load 'vm 'vm-cus-load)" | tr -d '\015' >> $@
> echo "(setq vm-configure-datadir \"${datadir}/vm\")" | tr -d '\015' >>
> $@
> @@ -145,11 +144,11 @@
> echo "(provide 'vm-autoloads)" | tr -d '\015' >> $@
>
> vm-cus-load.el: $(SOURCES:address@hidden@/%)
> - "$(EMACS_PROG)" $(FLAGS) -f vm-custom-make-dependencies .
> -ifeq (@EMACS_VERSION@,21)
> - sed -e "s/provide 'cus-load/provide 'vm-cus-load/" cus-load.el > $@
> - $(RM) cus-load.el
> -endif
> + $(EMACS_COMP) -f vm-custom-make-dependencies .
> + if [ "@EMACS_VERSION" = "21" ] ; then \
> + sed -e "s/provide 'cus-load/provide 'vm-cus-load/" cus-load.el > $@
> ;\
> + $(RM) cus-load.el ;\
> + fi
>
>
> ##############################################################################
> # XEmacs#s auto-autoloads and custom-load file
> @@ -158,7 +157,7 @@
> # (build_dir=`pwd`; cd "@srcdir@"; \
> # $(EMACS_PROG) $(FLAGS) -l autoload \
> # -f vm-built-autoloads "@abs_builddir@/$@" "`pwd`")
> - "$(EMACS_PROG)" $(FLAGS) \
> + $(EMACS_COMP) \
> -eval "$(AUTOLOAD_PACKAGE_NAME)" \
> -eval "$(AUTOLOAD_FILE)" \
> -l autoload -f batch-update-autoloads $^
> @@ -174,7 +173,7 @@
>
>
> custom-load.el: $(SOURCES:address@hidden@/%)
> - "$(EMACS_PROG)" $(FLAGS) -f vm-custom-make-dependencies .
> + $(EMACS_COMP) -f vm-custom-make-dependencies .
>
>
> ##############################################################################
> install-pkg: all $(INSTALL_FILES)