build: fix 'make distclean'
authorRyan Lortie <desrt@desrt.ca>
Mon, 13 Jan 2014 21:41:31 +0000 (16:41 -0500)
committerRyan Lortie <desrt@desrt.ca>
Mon, 13 Jan 2014 21:43:12 +0000 (16:43 -0500)
Don't run a non-existent lcov command to clean up during 'make distclean'

glib.mk

diff --git a/glib.mk b/glib.mk
index 00f2e42..09aae0e 100644 (file)
--- a/glib.mk
+++ b/glib.mk
@@ -59,7 +59,9 @@ genlcov:
        @echo "file://$(abs_top_builddir)/glib-lcov/index.html"
 
 lcov-clean:
-       $(AM_V_GEN) $(LTP) --quiet --directory $(top_builddir) -z
+       if test -n "$(LTP)"; then \
+         $(LTP) --quiet --directory $(top_builddir) -z; \
+       fi
 
 # run tests in cwd as part of make check
 check-local: test-nonrecursive