summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2012-11-13 12:53:40 +0000
committerRichard W.M. Jones <rjones@redhat.com>2012-11-13 15:26:29 +0000
commitcb4284b9e331c5c27351dadf8fe776f137eff318 (patch)
treeea34ed1fc55932bedfc12b122461bd24ada30ee3
parent3636c5fcff69e7a5a5afa126a597883db4c781bb (diff)
downloadlibguestfs-cb4284b9e331c5c27351dadf8fe776f137eff318.tar.gz
libguestfs-cb4284b9e331c5c27351dadf8fe776f137eff318.tar.xz
libguestfs-cb4284b9e331c5c27351dadf8fe776f137eff318.zip
Add 'make help' rule.
This gives a short overview of the make targets.
-rw-r--r--Makefile.am25
-rw-r--r--configure.ac2
2 files changed, 27 insertions, 0 deletions
diff --git a/Makefile.am b/Makefile.am
index d484dc15..b97f59d0 100644
--- a/Makefile.am
+++ b/Makefile.am
@@ -347,3 +347,28 @@ check-with-upstream-libvirt:
if [ "$$method" = "libvirt" ] && [ -x "$(LIBVIRTDIR)/run" ]; then \
$(LIBVIRTDIR)/run $(MAKE) check || exit $$?; \
fi
+
+# Provide help on common Makefile targets.
+
+help:
+ @echo
+ @echo "make Build everything."
+ @echo
+ @echo "make check Run the standard tests."
+ @echo "make check-valgrind Run a subset of the tests under valgrind."
+ @echo "make check-valgrind-local-tests Test under valgrind using local guests."
+ @echo "make check-with-appliance Test using appliance attach-method."
+ @echo "make check-with-upstream-qemu Test using upstream qemu."
+ @echo "make check-with-upstream-libvirt Test using upstream libvirt."
+ @echo "make extra-tests Same as check-* (but not 'make check')"
+ @echo "make syntax-check Check syntax and style problems in the code."
+ @echo
+ @echo "make install Install everything."
+ @echo
+ @echo "make clean Clean everything."
+ @echo
+ @echo "To run programs without installing:"
+ @echo " ./run ./fish/guestfish [or any other program]"
+ @echo
+ @echo "For more information, see EXTENDING LIBGUESTFS in guestfs(3); and README."
+ @echo
diff --git a/configure.ac b/configure.ac
index c3740ba7..b66c9e6c 100644
--- a/configure.ac
+++ b/configure.ac
@@ -1464,4 +1464,6 @@ echo "http://www.redhat.com/mailman/listinfo/libguestfs"
echo
echo "Next you should type 'make' to build the package,"
echo "then 'make check' to run the tests."
+echo
+echo "Or run 'make help' to list some common targets."
echo "------------------------------------------------------------"