2003-02-11 12:37:27 +00:00
|
|
|
include $(top_srcdir)/config/common.am
|
|
|
|
|
2015-09-25 08:58:17 +00:00
|
|
|
EXTRA_DIST = TODO.txt tex2lyx.1in $(TEST_FILES) $(TEST_RESULTS) \
|
2014-08-31 13:21:20 +00:00
|
|
|
CMakeLists.txt test/CMakeLists.txt
|
2003-02-11 12:37:27 +00:00
|
|
|
|
2008-11-15 17:45:55 +00:00
|
|
|
#noinst_LIBRARIES = libtexparser.a
|
2003-04-17 09:47:21 +00:00
|
|
|
#
|
2008-11-15 17:45:55 +00:00
|
|
|
#libtexparser_a_SOURCES = \
|
2007-04-26 04:53:06 +00:00
|
|
|
# Parser.cpp \
|
|
|
|
# Parser.h
|
2003-04-17 09:47:21 +00:00
|
|
|
#
|
2008-11-15 17:45:55 +00:00
|
|
|
#tex2lyx_LDADD = libtexparser.a
|
2003-02-12 08:36:49 +00:00
|
|
|
|
2005-07-16 15:18:14 +00:00
|
|
|
man_MANS = tex2lyx.1
|
|
|
|
|
2003-02-11 12:37:27 +00:00
|
|
|
bin_PROGRAMS = tex2lyx
|
|
|
|
|
2013-05-10 22:15:57 +00:00
|
|
|
DEFAULT_INCLUDES =
|
2007-08-21 23:17:37 +00:00
|
|
|
|
2015-09-25 08:58:17 +00:00
|
|
|
AM_CPPFLAGS += -I$(top_srcdir)/src/tex2lyx \
|
2014-11-25 17:41:33 +00:00
|
|
|
-I$(top_srcdir)/src -I$(top_builddir) -I$(top_builddir)/src \
|
2016-05-05 17:43:24 +00:00
|
|
|
$(BOOST_INCLUDES) $(ICONV_INCLUDES) $(ZLIB_INCLUDES)
|
2007-08-21 23:17:37 +00:00
|
|
|
|
2008-11-15 13:04:15 +00:00
|
|
|
TEST_FILES = \
|
2014-08-31 13:21:20 +00:00
|
|
|
test/runtests.cmake \
|
2012-07-08 17:28:19 +00:00
|
|
|
test/runtests.py \
|
2014-08-31 13:23:28 +00:00
|
|
|
test/algo2e.tex \
|
2018-03-17 12:20:48 +00:00
|
|
|
test/beamer.tex \
|
2008-11-15 13:04:15 +00:00
|
|
|
test/box-color-size-space-align.tex \
|
2012-07-08 16:12:26 +00:00
|
|
|
test/CJK.tex \
|
2012-12-30 10:58:21 +00:00
|
|
|
test/CJKutf8.tex \
|
2008-11-16 14:27:01 +00:00
|
|
|
test/DummyDocument.tex \
|
2012-12-29 12:16:22 +00:00
|
|
|
test/Dummy~Document.tex \
|
2008-11-15 13:04:15 +00:00
|
|
|
test/foo.eps \
|
|
|
|
test/foo.png \
|
|
|
|
test/test-insets.tex \
|
2015-11-07 06:48:43 +00:00
|
|
|
test/test-insets-basic.tex \
|
2008-11-15 13:04:15 +00:00
|
|
|
test/test.ltx \
|
2014-12-30 17:37:08 +00:00
|
|
|
test/test-memoir.tex \
|
2017-06-17 14:55:57 +00:00
|
|
|
test/test-minted.tex \
|
2012-10-26 20:23:16 +00:00
|
|
|
test/test-modules.tex \
|
2013-02-17 02:22:20 +00:00
|
|
|
test/test-refstyle-theorems.tex \
|
2014-12-23 21:33:32 +00:00
|
|
|
test/test-scr.tex \
|
2012-07-08 16:12:26 +00:00
|
|
|
test/test-structure.tex \
|
2015-05-28 20:11:35 +00:00
|
|
|
test/verbatim.tex \
|
2012-10-23 20:08:57 +00:00
|
|
|
test/XeTeX-polyglossia.tex \
|
|
|
|
test/xfigtest.fig \
|
|
|
|
test/xfigtest.pstex \
|
|
|
|
test/xfigtest.pstex_t
|
2004-08-18 14:20:18 +00:00
|
|
|
|
2012-12-30 11:14:21 +00:00
|
|
|
TEST_RESULTS = \
|
2014-08-31 13:23:28 +00:00
|
|
|
test/algo2e.lyx.lyx \
|
2018-03-17 12:20:48 +00:00
|
|
|
test/beamer.lyx.lyx \
|
2012-12-30 11:14:21 +00:00
|
|
|
test/box-color-size-space-align.lyx.lyx \
|
|
|
|
test/CJK.lyx.lyx \
|
|
|
|
test/CJKutf8.lyx.lyx \
|
|
|
|
test/DummyDocument.lyx.lyx \
|
|
|
|
test/Dummy~Document.lyx.lyx \
|
|
|
|
test/test-insets.lyx.lyx \
|
2015-05-24 16:42:46 +00:00
|
|
|
test/test-insets-basic.lyx.lyx \
|
2012-12-30 11:14:21 +00:00
|
|
|
test/test.lyx.lyx \
|
2014-12-30 17:37:08 +00:00
|
|
|
test/test-memoir.lyx.lyx \
|
2017-06-17 14:55:57 +00:00
|
|
|
test/test-minted.lyx.lyx \
|
2012-12-30 11:14:21 +00:00
|
|
|
test/test-modules.lyx.lyx \
|
2013-02-17 02:22:20 +00:00
|
|
|
test/test-refstyle-theorems.lyx.lyx \
|
2014-12-23 21:33:32 +00:00
|
|
|
test/test-scr.lyx.lyx \
|
2012-12-30 11:14:21 +00:00
|
|
|
test/test-structure.lyx.lyx \
|
2015-05-28 20:11:35 +00:00
|
|
|
test/verbatim.lyx.lyx \
|
2012-12-30 11:14:21 +00:00
|
|
|
test/XeTeX-polyglossia.lyx.lyx
|
|
|
|
|
2013-09-09 19:00:11 +00:00
|
|
|
alltests: check alltests-recursive
|
|
|
|
|
|
|
|
alltests-recursive: tex2lyx
|
2015-09-17 20:11:18 +00:00
|
|
|
if test "$(srcdir)" = "$(builddir)"; then \
|
|
|
|
echo "tex2lyx tests require a separate build directory"; \
|
|
|
|
exit 1; \
|
|
|
|
fi
|
2013-09-09 19:00:11 +00:00
|
|
|
@$(PYTHON) "$(srcdir)/test/runtests.py"; \
|
|
|
|
if test $$? -eq 0; then \
|
|
|
|
echo -e "=====================\ntex2lyx tests passed.\n====================="; \
|
|
|
|
else \
|
|
|
|
echo -e "=====================\ntex2lyx tests failed.\n====================="; \
|
|
|
|
fi
|
|
|
|
|
2012-10-04 20:29:43 +00:00
|
|
|
updatetests: tex2lyx
|
2012-10-24 20:11:05 +00:00
|
|
|
$(PYTHON) "$(srcdir)/test/runtests.py" ./tex2lyx "$(top_srcdir)/lib/scripts" "$(srcdir)/test"
|
2012-07-08 17:28:19 +00:00
|
|
|
|
2017-04-06 11:48:32 +00:00
|
|
|
LYX_OBJS = \
|
|
|
|
../Author.o \
|
|
|
|
../CiteEnginesList.o \
|
|
|
|
../Color.o \
|
|
|
|
../Counters.o \
|
|
|
|
../Encoding.o \
|
|
|
|
../FloatList.o \
|
|
|
|
../Floating.o \
|
|
|
|
../FontInfo.o \
|
|
|
|
../graphics/GraphicsParams.o \
|
|
|
|
../insets/ExternalTemplate.o \
|
|
|
|
../insets/ExternalTransforms.o \
|
|
|
|
../insets/InsetLayout.o \
|
|
|
|
../LaTeXPackages.o \
|
|
|
|
../Layout.o \
|
|
|
|
../LayoutFile.o \
|
|
|
|
../LayoutModuleList.o \
|
|
|
|
../Length.o \
|
|
|
|
../lengthcommon.o \
|
|
|
|
../Lexer.o \
|
|
|
|
../ModuleList.o \
|
|
|
|
../Spacing.o \
|
|
|
|
../TextClass.o \
|
|
|
|
../version.o
|
2003-07-26 00:15:38 +00:00
|
|
|
|
2003-02-12 08:36:49 +00:00
|
|
|
tex2lyx_SOURCES = \
|
2007-04-25 18:04:04 +00:00
|
|
|
boost.cpp \
|
2007-04-26 04:53:06 +00:00
|
|
|
Context.cpp \
|
|
|
|
Context.h \
|
2013-08-21 10:20:20 +00:00
|
|
|
dummy_impl.cpp \
|
2009-10-27 16:16:15 +00:00
|
|
|
math.cpp \
|
2007-04-26 04:53:06 +00:00
|
|
|
Parser.cpp \
|
|
|
|
Parser.h \
|
2011-10-30 12:47:45 +00:00
|
|
|
Preamble.cpp \
|
|
|
|
Preamble.h \
|
2007-04-26 04:53:06 +00:00
|
|
|
table.cpp \
|
2009-10-27 16:16:15 +00:00
|
|
|
tex2lyx.cpp \
|
|
|
|
tex2lyx.h \
|
2007-04-26 04:41:58 +00:00
|
|
|
text.cpp
|
2003-07-26 00:15:38 +00:00
|
|
|
|
|
|
|
tex2lyx_LDADD = \
|
2017-04-06 11:48:32 +00:00
|
|
|
$(LYX_OBJS) \
|
2008-11-15 17:45:55 +00:00
|
|
|
$(top_builddir)/src/support/liblyxsupport.a \
|
2013-05-10 22:15:57 +00:00
|
|
|
$(LIBICONV) $(BOOST_LIBS) \
|
2014-07-19 01:34:28 +00:00
|
|
|
$(QT_LIB) $(QT_LDFLAGS) \
|
2016-05-05 17:43:24 +00:00
|
|
|
@LIBS@ $(ICONV_LIBS) $(ZLIB_LIBS) $(LIBSHLWAPI) $(LIBPSAPI)
|
2011-09-27 07:27:19 +00:00
|
|
|
|
|
|
|
if INSTALL_MACOSX
|
2016-01-23 06:15:32 +00:00
|
|
|
tex2lyx_LDFLAGS = -framework AppKit \
|
|
|
|
-Wl,-rpath,@loader_path/../Frameworks \
|
2018-09-21 19:46:47 +00:00
|
|
|
-Wl,-rpath,@executable_path/../Frameworks \
|
|
|
|
-Wl,-headerpad_max_install_names
|
2011-09-27 07:27:19 +00:00
|
|
|
endif
|
2013-09-09 19:00:11 +00:00
|
|
|
|
|
|
|
.PHONY: alltests alltests-recursive updatetests
|