$(COMPILE) $<
# commands to build
-CMDS = ali anno burst comp dist flist folder forw mmh mark mhbuild mhl \
- mhlist mhmail mhparam mhpath mhshow mhstore msgchk \
- new packf pick prompter refile repl rmf rmm scan send sendfiles show \
- sortm whatnow
+CMDS = ali anno burst comp conflict dist flist folder forw mmh mark \
+ mhbuild mhl \
+ mhlist mhmail mhparam mhpath mhshow mhstore msgchk new packf pick \
+ print-mimetype prompter rcvdist rcvpack rcvstore refile repl rmf \
+ rmm scan send sendfiles show slocal sortm spost whatnow
# commands that are links to other commands
-LCMDS = flists folders next prev
+LCMDS = flists folders next prev fnext fprev unseen
# misc support binaries
-MISC = ap conflict dp fmtdump rcvdist rcvpack \
- rcvstore slocal spost mhtest
+MISC = ap dp fmtdump mhtest
# commands with 'S'pecial installation needs
SCMDS = inc
mhbuildsbr.c mhcachesbr.c mhfree.c mhl.c mhlist.c mhlistsbr.c \
mhmail.c mhmisc.c mhoutsbr.c mhparam.c mhparse.c \
mhpath.c mhshow.c mhshowsbr.c mhstore.c mhstoresbr.c mhtest.c \
- msgchk.c new.c packf.c pick.c \
+ msgchk.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 show.c slocal.c sortm.c spost.c termsbr.c \
forw: forw.o whatnowproc.o annosbr.o $(LOCALLIBS)
$(LINK) forw.o whatnowproc.o annosbr.o $(LINKLIBS)
-inc: inc.o scansbr.o dropsbr.o termsbr.o $(LOCALLIBS)
- $(LINK) inc.o scansbr.o dropsbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
+inc: inc.o scansbr.o termsbr.o $(LOCALLIBS)
+ $(LINK) inc.o scansbr.o termsbr.o $(LINKLIBS) $(TERMLIB)
mmh: mmh.sh
cp mmh.sh mmh
pick: pick.o $(LOCALLIBS)
$(LINK) pick.o $(LINKLIBS)
+print-mimetype: print-mimetype.sh
+ cp print-mimetype.sh print-mimetype
+ chmod +x print-mimetype
+
prompter: prompter.o $(LOCALLIBS)
$(LINK) prompter.o $(LINKLIBS)
slocal.o: slocal.c
$(COMPILE2) $(srcdir)/slocal.c
-slocal: slocal.o aliasbr.o dropsbr.o $(LOCALLIBS)
- $(LINK) slocal.o aliasbr.o dropsbr.o $(LINKLIBS)
+slocal: slocal.o $(LOCALLIBS)
+ $(LINK) slocal.o $(LINKLIBS)
sortm: sortm.o $(LOCALLIBS)
$(LINK) sortm.o $(LINKLIBS)
# install commands
install-cmds:
- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(bindir)
+ mkdir -p $(DESTDIR)$(bindir)
for cmd in $(CMDS); do \
$(INSTALL_PROGRAM) $$cmd $(DESTDIR)$(bindir)/$$cmd; \
done
# install misc support binaries
install-misc:
- $(top_srcdir)/mkinstalldirs $(DESTDIR)$(libdir)
+ mkdir -p $(DESTDIR)$(libdir)
for misc in $(MISC); do \
$(INSTALL_PROGRAM) $$misc $(DESTDIR)$(libdir)/$$misc; \
done
cd .. && ./config.status $(subdir)/$@
distdir = ../`cat ../distname`/$(subdir)
-nmhdist: $(DIST)
+mmhdist: $(DIST)
@echo "Copying distribution files in $(subdir)"
@for file in $(DIST); do \
cp -p $(srcdir)/$$file $(distdir); \