+ rm -f *.o advent *.html database.[ch] compile *.gcno *.gcda
+ rm -f README advent.6
+ cd tests; $(MAKE) --quiet clean
+
+check: advent
+ cd tests; $(MAKE) --quiet
+
+.SUFFIXES: .adoc .html .6
+
+# Requires asciidoc and xsltproc/docbook stylesheets.
+.adoc.6:
+ a2x --doctype manpage --format manpage $<
+.adoc.html:
+ asciidoc $<
+.adoc:
+ asciidoc $<
+
+# README.adoc exists because that filename is magic on GitLab.
+DOCS=COPYING NEWS README.adoc TODO \
+ advent.adoc history.adoc index.adoc hints.adoc advent.6
+
+advent-$(VERS).tar.gz: $(SOURCES) $(DOCS)
+ tar --transform='s:^:advent-$(VERS)/:' --show-transformed-names -cvzf advent-$(VERS).tar.gz $(SOURCES) $(DOCS)
+
+dist: advent-$(VERS).tar.gz
+
+debug: CCFLAGS += -O0 --coverage
+debug: advent