diff options
author | Eli Zaretskii <eliz@gnu.org> | 1998-04-12 14:19:09 +0000 |
---|---|---|
committer | Eli Zaretskii <eliz@gnu.org> | 1998-04-12 14:19:09 +0000 |
commit | de219b909dbadc053c21225612b059530d8269c9 (patch) | |
tree | 6fee7373a40105abf2438d379845ba8074f7c419 /msdos/mainmake.v2 | |
parent | cc9b4df2b412a5638f4be7ebd77249a1bf46fce9 (diff) | |
download | emacs-de219b909dbadc053c21225612b059530d8269c9.tar.gz |
Determine emacs-version from lisp/version.el. Pass it to
sub-Make's.
Diffstat (limited to 'msdos/mainmake.v2')
-rw-r--r-- | msdos/mainmake.v2 | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/msdos/mainmake.v2 b/msdos/mainmake.v2 index d63fc1d8dfd..3ec9494dd58 100644 --- a/msdos/mainmake.v2 +++ b/msdos/mainmake.v2 @@ -30,18 +30,21 @@ # Still more severe - delete backup and autosave files, too. # Generate a full pathname of the top-level installation directory -topdir := $(subst \,/,$(shell cd)) +top_srcdir := $(subst \,/,$(shell cd)) + +# Find out which version of Emacs this is. +version := ${shell sed -n -e '/(defconst emacs-version/s/^[^"]*\("[^"]*"\).*/\1/p' lisp/version.el} all: lib-src src man lib-src: FRC cd lib-src - $(MAKE) + $(MAKE) top_srcdir=${top_srcdir} version=${version} cd .. src: FRC cd src - $(MAKE) + $(MAKE) top_srcdir=${top_srcdir} redir -o gdb.sed echo '/-geometry/s,^.*,set environment HOME $(topdir),' redir -oa gdb.sed echo '/environment *TERM/s/^.*/set environment TERM internal/' redir -oa gdb.sed echo '/x_error_quitter/s/^.*/set environment NAME root/' @@ -56,7 +59,7 @@ src: FRC man: FRC cd man - $(MAKE) + $(MAKE) top_srcdir=${top_srcdir} cd .. install: all |