+TEST_EXTENSIONS = .tap
+
+TAP_LOG_COMPILER = $(SHELL)
+TAP_LOG_DRIVER = AM_TAP_AWK='$(AWK)' \
+ $(SHELL) $(srcdir)/tests/util/tap-driver.sh
+
+TESTS = tests/broken-archives.tap tests/empty-image.tap tests/pam-formats.tap \
+ tests/moo2-mainmenu.tap tests/moo2-logo.tap tests/moo2-starbg.tap \
+ tests/moo2-ships.tap tests/moo2-monster.tap
+
+mostlyclean-local: clean-testdirs
+clean-testdirs:
+ for dir in $(TESTS:.tap=.dir); do \
+ case $$dir in \
+ *.dir) rm -rf "$$dir" ;; \
+ esac; \
+ done
+.PHONY: clean-testdirs
+
+OPTFILES = src/toolopts.opt src/imgopts.opt
+.opt.h:
+ $(AM_V_GEN) $(AWK) -f $(DX_BASEDIR)/scripts/gen-options.awk $< >$@.tmp
+ $(AM_V_at) mv -f $@.tmp $@
+$(OPTFILES:.opt=.h): $(DX_BASEDIR)/scripts/gen-options.awk
+CLEANFILES += $(OPTFILES:.opt=.h)
+EXTRA_DIST += $(DX_BASEDIR)/scripts/gen-options.awk $(OPTFILES)
+