srcdir = @srcdir@
VPATH = @srcdir@
+VERSION = `$(top_srcdir)/version.sh $(top_srcdir)`
+
prefix = @prefix@
exec_prefix = @exec_prefix@
bindir = @bindir@
TERMLIB = @TERMLIB@
LEXLIB = @LEXLIB@
-COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS)
+COMPILE = $(CC) -c $(DEFS) -DVERSION="\"$(VERSION)\"" $(INCLUDES) $(CFLAGS)
LINK = $(CC) $(LDFLAGS) -o $@
LN = ln
LCMDS = flists folders next prev fnext fprev unseen
# misc support binaries
-MISC = ap dp fmtdump mhtest mmhwrap
+MISC = ap dp fmtdump mhtest mmhwrap whatnow2
# commands with 'S'pecial installation needs
SCMDS = inc
prompter.c rcvdist.c rcvpack.c rcvstore.c \
refile.c repl.c rmf.c rmm.c scan.c scansbr.c send.c \
sendfiles.sh slocal.c sortm.c spost.c termsbr.c \
- whatnow.c whatnowproc.c whom.c
+ whatnow.c whatnowproc.c whom.c whatnow2.sh
# ========== DEFAULT TARGET ==========
whatnow: whatnow.o $(LOCALLIBS)
$(LINK) whatnow.o $(LINKLIBS)
+whatnow2: whatnow2.sh
+ cp $(srcdir)/whatnow2.sh whatnow2
+
whom: whom.o $(LOCALLIBS)
$(LINK) whom.o $(LINKLIBS)