diff --git a/project.conf b/project.conf index 3f81909..5a34dc0 100644 --- a/project.conf +++ b/project.conf @@ -4,8 +4,17 @@ vendor=Desktop config=h,sh subdirs=data,doc,include,po,src,src/plugins,tests +targets=tests dist=Makefile,COPYING,README.md,config.h,config.sh +#targets +[tests] +type=command +command=cd tests && (if [ -n "$(OBJDIR)" ]; then $(MAKE) OBJDIR="$(OBJDIR)tests/" "$(OBJDIR)tests/fixme.log" "$(OBJDIR)tests/tests.log"; else $(MAKE) fixme.log tests.log; fi) +depends=all +enabled=0 +phony=1 + #dist [COPYING] install=$(PREFIX)/share/doc/Mailer diff --git a/tests/project.conf b/tests/project.conf index a99d9a2..004616f 100644 --- a/tests/project.conf +++ b/tests/project.conf @@ -18,6 +18,7 @@ ldflags=-L$(OBJDIR)../src -Wl,-rpath,$(OBJDIR)../src -lMailer [fixme.log] type=script script=./fixme.sh +enabled=0 depends=fixme.sh [imap4] @@ -39,6 +40,7 @@ sources=plugins.c [tests.log] type=script script=./tests.sh +enabled=0 depends=$(OBJDIR)date,$(OBJDIR)email,$(OBJDIR)imap4,pkgconfig.sh,$(OBJDIR)plugins,tests.sh #sources