# 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)),)
# 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