bin_PROGRAMS = tex2lyx
-DEFAULT_INCLUDES =
+DEFAULT_INCLUDES =
AM_CPPFLAGS += -DTEX2LYX -DNO_LAYOUT_CSS $(PCH_FLAGS) -I$(top_srcdir)/src/tex2lyx \
-I$(top_srcdir)/src -I$(top_builddir) $(BOOST_INCLUDES)
test/verbatim.lyx.lyx \
test/XeTeX-polyglossia.lyx.lyx
-TESTS = test/runtests.py
+alltests: check alltests-recursive
+
+alltests-recursive: tex2lyx
+ @$(PYTHON) "$(srcdir)/test/runtests.py"; \
+ if test $$? -eq 0; then \
+ echo -e "=====================\ntex2lyx tests passed.\n====================="; \
+ else \
+ echo -e "=====================\ntex2lyx tests failed.\n====================="; \
+ fi
+
updatetests: tex2lyx
$(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
tex2lyx_LDADD = \
$(top_builddir)/src/support/liblyxsupport.a \
- $(INTLLIBS) $(LIBICONV) $(BOOST_LIBS) \
+ $(LIBICONV) $(BOOST_LIBS) \
$(QT4_LIB) $(QT4_LDFLAGS) \
@LIBS@ $(LIBSHLWAPI) $(LIBPSAPI)
if INSTALL_MACOSX
tex2lyx_LDFLAGS = -framework AppKit
endif
+
+.PHONY: alltests alltests-recursive updatetests