X-Git-Url: http://git.marmaro.de/?p=mmh;a=blobdiff_plain;f=uip%2FMakefile.in;h=e7e7b46d6979752354089c139b93958c5144095f;hp=f0c258e9c64084471fd8f82e0cdf32a9c5bf7c3e;hb=6e9577f324bef90765a5edc02044eb111ec48072;hpb=204c305913a20d207cba063ec2da8d0275d2da5d diff --git a/uip/Makefile.in b/uip/Makefile.in index f0c258e..e7e7b46 100644 --- a/uip/Makefile.in +++ b/uip/Makefile.in @@ -8,6 +8,8 @@ top_srcdir = @top_srcdir@ srcdir = @srcdir@ VPATH = @srcdir@ +VERSION = `$(top_srcdir)/version.sh $(top_srcdir)` + prefix = @prefix@ exec_prefix = @exec_prefix@ bindir = @bindir@ @@ -17,11 +19,12 @@ etcdir = @sysconfdir@ 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@ @@ -30,7 +33,7 @@ LINTFLAGS = @LINTFLAGS@ TERMLIB = @TERMLIB@ LEXLIB = @LEXLIB@ -COMPILE = $(CC) -c $(DEFS) $(INCLUDES) $(CFLAGS) +COMPILE = $(CC) -c $(DEFS) -DVERSION="\"$(VERSION)\"" $(INCLUDES) $(CFLAGS) LINK = $(CC) $(LDFLAGS) -o $@ LN = ln @@ -48,7 +51,7 @@ SETGID_MAIL = @SETGID_MAIL@ # 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 whom @@ -57,7 +60,7 @@ CMDS = ali anno burst comp dist flist folder forw mmh mark \ 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 @@ -66,20 +69,14 @@ SCMDS = inc 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 whom.c - -# auxiliary files -AUX = Makefile.in - -# all files in this directory included in the distribution -DIST = $(SRCS) $(AUX) + whatnow.c whatnowproc.c whom.c whatnow2.sh # ========== DEFAULT TARGET ========== @@ -134,6 +131,14 @@ mmhwrap: mmhwrap.sh sed "s,%bindir%,"$(bindir)"," $(srcdir)/mmhwrap.sh >mmhwrap chmod +x mmhwrap +mhsign: mhsign.sh + sed "s,%libdir%,"$(libdir)"," $(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) @@ -220,6 +225,9 @@ spost: spost.o aliasbr.o $(LOCALLIBS) whatnow: whatnow.o $(LOCALLIBS) $(LINK) whatnow.o $(LINKLIBS) +whatnow2: whatnow2.sh + cp $(srcdir)/whatnow2.sh whatnow2 + whom: whom.o $(LOCALLIBS) $(LINK) whom.o $(LINKLIBS) @@ -308,10 +316,3 @@ subdir = uip 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 -