CC = @CC@
CFLAGS = @CFLAGS@
DEFS = @DEFS@
-INCLUDES = -I$(srcdir) -I$(top_srcdir) @CPPFLAGS@
+# add include dir .. for config.h when building in different directory
+INCLUDES = -I$(srcdir) -I$(top_srcdir) -I.. @CPPFLAGS@
LDFLAGS = @LDFLAGS@
LIBS = @LIBS@
-LOCALLIBS = ../config/version.o ../config/config.o ../sbr/libmh.a
+LOCALLIBS = ../sbr/libmh.a
LINKLIBS = $(LOCALLIBS) $(LIBS)
LINT = @LINT@
# commands to build
CMDS = ali anno burst comp dist flist folder forw mmh mark \
- mhbuild mhl \
+ mhbuild mhl mhsign mhpgp \
mhlist mhmail mhparam mhpath mhstore new packf pick \
print-mimetype prompter rcvdist rcvpack rcvstore refile repl rmf \
- rmm scan send sendfiles show slocal sortm spost whatnow
+ rmm scan send sendfiles show slocal sortm spost whatnow whom
# commands that are links to other commands
LCMDS = flists folders next prev fnext fprev unseen
SRCS = ali.c aliasbr.c anno.c ap.c burst.c comp.c \
dist.c distsbr.c dp.c dropsbr.c flist.c fmtdump.c \
folder.c forw.c inc.c mark.c mmh.sh mmhwrap.sh mhbuild.c \
- mhfree.c mhl.c mhlist.c mhlistsbr.c \
+ mhfree.c mhl.c mhlist.c mhlistsbr.c mhsign.sh mhpgp.sh \
mhmail.c mhmisc.c mhoutsbr.c mhparam.c mhparse.c \
mhpath.c mhshow.c mhshowsbr.c mhstore.c mhtest.c \
new.c packf.c pick.c print-mimetype.sh \
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
-
-# auxiliary files
-AUX = Makefile.in
-
-# all files in this directory included in the distribution
-DIST = $(SRCS) $(AUX)
+ whatnow.c whatnowproc.c whom.c
# ========== DEFAULT TARGET ==========
sed "s,%bindir%,"$(bindir)"," $(srcdir)/mmhwrap.sh >mmhwrap
chmod +x mmhwrap
+mhsign: mhsign.sh
+ cp $(srcdir)/mhsign.sh mhsign
+ chmod +x mhsign
+
+mhpgp: mhpgp.sh
+ cp $(srcdir)/mhpgp.sh mhpgp
+ chmod +x mhpgp
+
mhbuild: mhbuild.o mhoutsbr.o mhmisc.o mhfree.o mhparse.o termsbr.o $(LOCALLIBS)
$(LINK) mhbuild.o mhoutsbr.o mhmisc.o mhfree.o mhparse.o $(LINKLIBS) $(TERMLIB)
whatnow: whatnow.o $(LOCALLIBS)
$(LINK) whatnow.o $(LINKLIBS)
+whom: whom.o $(LOCALLIBS)
+ $(LINK) whom.o $(LINKLIBS)
+
# ========== DEPENDENCIES FOR INSTALLING ==========
# install everything
Makefile: Makefile.in ../config.status
cd .. && ./config.status $(subdir)/$@
-distdir = ../`cat ../distname`/$(subdir)
-mmhdist: $(DIST)
- @echo "Copying distribution files in $(subdir)"
- @for file in $(DIST); do \
- cp -p $(srcdir)/$$file $(distdir); \
- done
-