commit-check is a special make rule to run all sort of time-consuming
checks before committing (like building the documentation and run the test
cases). This is ideal for a git pre-commit hook, to avoid committing
broken stuff.
Now make all (and default) does nothing, because is a source-only library.
default: all
-all: doc test memtest
+all:
install:
$(MAKE) -C src $@
test memtest:
$(MAKE) -C test $@
+commit-check: doc test memtest
+
clean:
$(MAKE) -C src $@
$(MAKE) -C doc $@
$(MAKE) -C test $@
-.PHONY: default all install doc test memtest clean
+.PHONY: default all install doc test memtest commit-check clean