The conference was great: it was good to meet up with friends (old and new) again, get a bit of hacking done and hear lots of discussion about the future of GNOME. My thanks to the GNOME Foundation and my summer employer, Collabora, for sponsoring my accommodation and travel. Thank you to the local team for organising a brilliant GUADEC in a nice city, and here's to a successful GCDS 2011 in Berlin!
In other news, I've finally got fed up with forgetting to add new files in my project to either the project-wide header file or the documentation index, so I wrote some `make check` rules which will check for my braindeadness:
This one goes in the Makefile.am in the directory which builds your public header (such as gtk/gtk.h), and assumes a list of all the headers you're going to install is in public_headers, and that your main header's path is in main_header.
check-local: check-headers check-headers: @any_missing=0; for header_file in $(public_headers); do \ if test "x\(\)header_file>" $(main_header) >/dev/null; then \ echo "$(main_header) doesn't appear to include \"\(\)any_missing"
This one goes in the Makefile.am in your gtk-doc directory (e.g. docs/reference), and only assumes the existence of DOC_MAIN_SGML_FILE, which needs to be defined for gtk-doc anyway.
check-local: check-xml-includes check-xml-includes: @any_missing=0; find $(srcdir) -name "*.xml" | while read x; do \ xml_file="\(\)xml_file" != "x$(DOC_MAIN_SGML_FILE)"; then \ if ! grep "\"\(\)xml_file\""; \ any_missing=1; \ fi; \ fi; \ done; exit "$$any_missing"
I've filed bgo#627920 about adding the second rule to gtk-doc itself. I'm not sure the first rule is general enough to be put anywhere common.