X-Git-Url: https://codewiz.org/gitweb?a=blobdiff_plain;f=rules.mk;h=a3ce58425fc9d375a971834598c33fbe0f73b5b3;hb=45add65abd59bd79f528501c85f3e5891a9c2c29;hp=e395f053c31cabed468674357d1b3458f57b0d1a;hpb=42cfb32d63a5a136a8d17594f0ded8102a35887c;p=bertos.git diff --git a/rules.mk b/rules.mk index e395f053..a3ce5842 100644 --- a/rules.mk +++ b/rules.mk @@ -59,8 +59,21 @@ endif # Generate project documentation .PHONY: docs docs: + $L "Building documentation" $Q $(DOXYGEN) +# Generate ctags +.PHONY: tags +tags: + $L "Rebuilding C tags database" + $Q ctags -R --exclude=doc + +# Run testsuite +.PHONY: check +check: + $L "Running testsuite" + $Q ./run_tests.sh + define build_target ifneq ($$(strip $$($(1)_MCU)),) @@ -217,8 +230,8 @@ $(foreach t,$(TRG),$(eval $(call build_target,$(t)))) # leading to puzzling linker errors. Kill 'em and abort build. %_moc.cpp: %.h $(MOC) -o $@ $< - if [ -s $< ]; then \ - rm $@; \ + if [ ! -s $< ]; then \ + rm -f $@; \ exit 1; \ fi