Add 'check' target used in compiling/running testsuite.
authorAndres Mejia <amejia004@gmail.com>
Sun, 17 Jun 2012 23:14:53 +0000 (19:14 -0400)
committerAndres Mejia <amejia004@gmail.com>
Sun, 17 Jun 2012 23:14:53 +0000 (19:14 -0400)
Makefile.in
Makefile.include.in
xbmc/utils/test/Makefile

index c19f772..a491dae 100755 (executable)
@@ -198,6 +198,8 @@ FINAL_TARGETS=xbmc.bin skins xbmc-xrandr
 endif
 FINAL_TARGETS+=Makefile externals
 
+CHECK_DIRS = xbmc/utils/test
+
 all : $(FINAL_TARGETS)
        @echo '-----------------------'
        @echo 'XBMC built successfully'
@@ -486,3 +488,6 @@ clean-codecs: clean-dvdpcodecs clean-papcodecs
 
 clean-externals: clean-codecs clean-eventclients clean-xbmctex clean-libs \
        clean-screensavers clean-visualisations
+
+check:
+       for d in $(CHECK_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d $@; fi; done
index d0d44bd..c7eb9aa 100644 (file)
@@ -132,6 +132,7 @@ pch: $(PCH:.h=.h.gch)
 clean: 
        $(RM) $(OBJS) *.o $(LIB) $(SLIB) $(CLEAN_FILES) $(PCH:.h=.h.gch) $(DEPS)
        for d in $(DIRS); do (if test -f "$$d/Makefile"; then ($(MAKE) -C "$$d" clean); fi ); done
+       for d in $(CHECK_DIRS); do if test -f $$d/Makefile; then $(MAKE) -C $$d $@; fi; done
 
 distclean:
        $(RM) $(OBJS) *.o $(LIB) $(SLIB) $(STATICLIB) $(CLEAN_FILES) $(DISTCLEAN_FILES) $(PCH:.h=.h.gch) $(DEPS)
index 71988c3..5593cc6 100644 (file)
@@ -6,7 +6,7 @@ LIB=utilsTest.a
 
 CLEAN_FILES=testMain
 
-runtest: testMain
+check: testMain
        ./testMain
 
 include ../../../Makefile.include