+ $(CC) $(CCFLAGS) $(DBX) -c $<
+
+advent: $(OBJS) database.o
+ $(CC) $(CCFLAGS) $(DBX) -o advent $(OBJS) database.o $(LDFLAGS) $(LIBS)
+
+main.o: advent.h funcs.h database.h
+
+init.o: advent.h funcs.h database.h
+
+actions1.o: advent.h funcs.h database.h
+
+actions2.o: advent.h funcs.h database.h
+
+score.o: advent.h database.h
+
+misc.o: advent.h database.h
+
+database.o: database.h
+
+compile: compile.c
+ $(CC) $(CCFLAGS) -o $@ $<
+
+database.c database.h: compile adventure.text
+ ./compile
+ $(CC) $(CCFLAGS) $(DBX) -c database.c
+
+clean:
+ rm -f *.o advent *.html database.[ch] compile *.gcno *.gcda
+ rm -f README advent.6 MANIFEST *.tar.gz
+ 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 $<