X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=Makefile.am;h=082c9c747c26bb774431209cc354a4b2fb52e324;hb=b0b7ee58c482bf36063e6158f610dd337f3ca568;hp=84bf58fa4d8c00889ab517c3a558f54b01e62e0c;hpb=3439af1e13339ebd1c189f8afaae93a6d9fd27a7;p=mmh diff --git a/Makefile.am b/Makefile.am index 84bf58f..082c9c7 100644 --- a/Makefile.am +++ b/Makefile.am @@ -33,24 +33,29 @@ auxexecdir = @libdir@ ## ## nmh _does_ have a test suite! ## - -TESTS_ENVIRONMENT = MH_TEST_DIR=`pwd`/test/testdir \ - MH_TEST_COMMON=`pwd`/test/common.sh \ - MH_OBJ_DIR=`pwd` mandir=$(mandir) bindir=$(bindir) \ - sysconfdir=$(sysconfdir) auxexecdir=$(auxexecdir) +TESTS_ENVIRONMENT = MH_OBJ_DIR=@abs_builddir@ \ + MH_TEST_DIR=@abs_builddir@/test/testdir \ + auxexecdir=$(auxexecdir) bindir=$(bindir) \ + mandir=$(mandir) sysconfdir=$(sysconfdir) ## ## Important note: the "cleanup" test should always be last ## TESTS = test/bad-input/test-header test/folder/test-create \ - test/folder/test-total test/inc/test-deb359167 test/inc/test-eom-align \ + test/folder/test-total test/format/test-localmbox \ + test/format/test-myname test/format/test-myhost \ + test/format/test-mymbox \ + test/inc/test-deb359167 test/inc/test-eom-align \ test/manpages/test-manpages test/mhbuild/test-forw \ + test/mhpath/test-mhpath \ test/mhshow/test-cte-binary test/mhshow/test-qp \ test/mhshow/test-subpart test/new/test-basic test/pick/test-stderr \ test/repl/test-if-str test/scan/test-scan \ test/whatnow/test-attach-detach test/whatnow/test-cd \ - test/whatnow/test-ls test/cleanup + test/whatnow/test-ls \ + test/cleanup ## The "cleanup" test should always be last. check_SCRIPTS = test/common.sh +check_PROGRAMS = test/getfullname ## ## Stuff that should be cleaned via "make clean" @@ -206,6 +211,7 @@ uip_burst_SOURCES = uip/burst.c uip_comp_SOURCES = uip/comp.c uip/whatnowproc.c uip/whatnowsbr.c uip/sendsbr.c \ uip/annosbr.c uip/distsbr.c +uip_comp_LDADD = $(LDADD) $(ICONVLIB) uip_dist_SOURCES = uip/dist.c uip/whatnowproc.c uip/whatnowsbr.c uip/sendsbr.c \ uip/annosbr.c uip/distsbr.c @@ -341,6 +347,9 @@ uip_spost_SOURCES = uip/spost.c uip/aliasbr.c uip_viamail_SOURCES = uip/viamail.c uip/mhmisc.c uip/mhoutsbr.c uip/sendsbr.c \ uip/annosbr.c uip/distsbr.c +test_getfullname_SOURCES = test/getfullname.c +test_getfullname_LDADD = + ## ## Our rebuild rules for files that aren't built via the normal mechanisms ## @@ -448,8 +457,8 @@ sbr_libmh_a_CPPFLAGS = -I./sbr -DNMHETCDIR='"$(sysconfdir)"' \ -DMAILSPOOL='"$(mailspool)"' \ -DSENDMAILPATH='"$(sendmailpath)"' -DNMHBINDIR='"$(bindir)"' \ -DNMHLIBDIR='"$(libdir)"' \ - -DDEFAULT_EDITOR='"$(default_editor)"' \ - -DDEFAULT_PAGER='"$(default_pager)"' + -DDEFAULT_EDITOR='"$(editorpath)"' \ + -DDEFAULT_PAGER='"$(pagerpath)"' sbr_libdtimep_a_SOURCES = sbr/dtimep.l sbr_libdtimep_a_CFLAGS = $(sbr_libmh_a_CPPFLAGS) $(DISABLE_UNUSED_MACROS_WARNING) @@ -477,8 +486,8 @@ man/man.sed: Makefile echo 's,%mandir%,$(mandir),g' >> $@ echo 's,%mailspool%,$(mailspool),g' >> $@ echo 's,%sendmailpath%,$(sendmailpath),g' >> $@ - echo 's,%default_editor%,$(default_editor),g' >> $@ - echo 's,%default_pager%,$(default_pager),g' >> $@ + echo 's,%default_editor%,$(editorpath),g' >> $@ + echo 's,%default_pager%,$(pagerpath),g' >> $@ echo 's,%manext1%,$(manext1),g' >> $@ echo 's,%manext5%,$(manext5),g' >> $@ echo 's,%manext8%,$(manext8),g' >> $@