unittests: skip clean if objdir is not present

Don't try to call unittest clean if objfile dir is non-existant (e.g.
when objfile submodule wasn't cloned). Another solution would be to make
clean target dependant on objdir but that would mean downloading a lot
of unneeded data for users who don't run unit-tests.

Fixes: #872

Signed-off-by: Artem Savkov <asavkov@redhat.com>
This commit is contained in:
Artem Savkov 2018-06-04 13:04:18 +02:00
parent 74392002de
commit b10e0b7d82

View File

@ -8,4 +8,4 @@ all: Makefile.include
$(MAKE) -C $(OBJDIR)
clean: Makefile.include
$(MAKE) -C $(OBJDIR) clean
if [ -d $(OBJDIR) ]; then $(MAKE) -C $(OBJDIR) clean; fi