# This is free software: you are free to do what the fuck you want to.
# There is NO WARRANTY, to the extent permitted by law.
-AUTOMAKE_OPTIONS = parallel-tests color-tests
ACLOCAL_AMFLAGS = -I m4 -I common/m4
# For Gnulib
EXTRA_DIST = bootstrap $(DX_BASEDIR)/scripts/fix-gnulib.pl m4/gnulib-cache.m4
CLEANFILES = $(EXTRA_LTLIBRARIES)
+DISTCLEANFILES =
AM_CPPFLAGS = -I$(top_builddir)/lib -I$(top_srcdir)/lib \
-I$(top_builddir)/src -I$(top_srcdir)/src \
lbxgui_LDFLAGS = $(AM_LDFLAGS) -export-dynamic
lbxgui_LDADD = liblbx.la $(GTK_LIBS)
-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
EXTRA_DIST += src/gui/lbxgui.glade.xml
CLEANFILES += src/gui/lbxgui.glade.c
-include lib/gnulib.mk
+atlocal: config.status
+ $(AM_V_GEN) :; { \
+ printf ': "$${%s=%s}"\n' \
+ datadir '$(datadir)' \
+ LN_S '$(LN_S)' \
+ MD5 '$(MD5)' \
+ PAMARITH '$(PAMARITH)' \
+ PAMCHANNEL '$(PAMCHANNEL)' \
+ ; } >$@.tmp
+ $(AM_V_at) mv -f $@.tmp $@
+check_DATA = atlocal
+CLEANFILES += atlocal
+
+# Data files used in test cases
+dist_check_DATA = tests/testdata/image-0x0 tests/testdata/image-1x1 \
+ tests/testdata/image-1x1-mt tests/testdata/palette-ramp \
+ tests/testdata/arch-trunc.lbx
+
+include $(top_srcdir)/common/snippet/autotest.mk
+include $(top_srcdir)/lib/gnulib.mk