mirror of
https://git.lyx.org/repos/lyx.git
synced 2024-11-09 18:31:04 +00:00
simplify build process of tex2lyx
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@19712 a592a061-630c-0410-9148-cb99ea01b6c8
This commit is contained in:
parent
212f6d10df
commit
9d711c62fc
@ -15,6 +15,10 @@
|
||||
#ifndef FONT_H
|
||||
#define FONT_H
|
||||
|
||||
#ifdef TEX2LYX
|
||||
#include "tex2lyx/Font.h"
|
||||
#else
|
||||
|
||||
#include "Color.h"
|
||||
#include "support/docstream.h"
|
||||
|
||||
@ -422,4 +426,5 @@ bool operator!=(Font const & font1, Font const & font2)
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
#endif // TEX2LYX
|
||||
#endif
|
||||
|
@ -12,6 +12,10 @@
|
||||
#ifndef SPACING_H
|
||||
#define SPACING_H
|
||||
|
||||
#ifdef TEX2LYX
|
||||
#include "tex2lyx/Spacing.h"
|
||||
#else
|
||||
|
||||
#include <iosfwd>
|
||||
#include <string>
|
||||
|
||||
@ -88,8 +92,9 @@ inline
|
||||
bool operator!=(Spacing const & a, Spacing const & b)
|
||||
{
|
||||
return !(a == b);
|
||||
|
||||
}
|
||||
|
||||
} // namespace lyx
|
||||
}
|
||||
#endif
|
||||
|
||||
#endif // TEX2LYX
|
||||
#endif // SPACING_H
|
||||
|
@ -14,8 +14,8 @@
|
||||
*
|
||||
*/
|
||||
|
||||
#ifndef LYXFONT_H
|
||||
#define LYXFONT_H
|
||||
#ifndef TEX2LYX_FONT_H
|
||||
#define TEX2LYX_FONT_H
|
||||
|
||||
namespace lyx {
|
||||
|
||||
@ -40,4 +40,4 @@ public:
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
#endif // NOT LYXFONT_H
|
||||
#endif // TEX2LYX_FONT_H
|
||||
|
@ -1,8 +1,9 @@
|
||||
include $(top_srcdir)/config/common.am
|
||||
|
||||
EXTRA_DIST = tex2lyx.man pch.h test-structure.tex test-insets.tex
|
||||
EXTRA_DIST = tex2lyx.man test-structure.tex test-insets.tex
|
||||
EXTRA_DIST += pch.h
|
||||
|
||||
DISTCLEANFILES += tex2lyx.1 $(LINKED_FILES)
|
||||
DISTCLEANFILES += tex2lyx.1
|
||||
|
||||
#noinst_LTLIBRARIES = libtexparser.la
|
||||
#
|
||||
@ -16,19 +17,28 @@ man_MANS = tex2lyx.1
|
||||
|
||||
bin_PROGRAMS = tex2lyx
|
||||
|
||||
AM_CPPFLAGS += $(PCH_FLAGS) -I$(srcdir)/.. $(BOOST_INCLUDES)
|
||||
DEFAULT_INCLUDES =
|
||||
|
||||
AM_CPPFLAGS += \
|
||||
-DTEX2LYX \
|
||||
$(PCH_FLAGS) \
|
||||
-I$(top_srcdir)/src/tex2lyx \
|
||||
-I$(top_srcdir)/src \
|
||||
-I$(top_builddir)/src \
|
||||
$(BOOST_INCLUDES)
|
||||
|
||||
|
||||
LINKED_FILES = \
|
||||
FloatList.cpp \
|
||||
Floating.cpp \
|
||||
Counters.cpp \
|
||||
Layout.h \
|
||||
Layout.cpp \
|
||||
TextClass.cpp \
|
||||
TextClass.h \
|
||||
Lexer.cpp
|
||||
../FloatList.cpp \
|
||||
../Floating.cpp \
|
||||
../Counters.cpp \
|
||||
../Layout.h \
|
||||
../Layout.cpp \
|
||||
../TextClass.cpp \
|
||||
../TextClass.h \
|
||||
../Lexer.cpp
|
||||
|
||||
BUILT_SOURCES = $(PCH_FILE) $(LINKED_FILES)
|
||||
BUILT_SOURCES = $(PCH_FILE)
|
||||
|
||||
tex2lyx_SOURCES = \
|
||||
$(LINKED_FILES) \
|
||||
@ -54,12 +64,5 @@ tex2lyx_LDADD = \
|
||||
$(top_builddir)/boost/liblyxboost.la \
|
||||
$(LIBICONV) @LIBS@
|
||||
|
||||
$(LINKED_FILES) :
|
||||
@rm -f $@ ; \
|
||||
$(LN_S) $(top_srcdir)/src/$@ .
|
||||
|
||||
rm_link_files:
|
||||
rm -f $(LINKED_FILES)
|
||||
|
||||
tex2lyx.1:
|
||||
cp -p $(srcdir)/tex2lyx.man tex2lyx.1
|
||||
|
@ -13,8 +13,8 @@
|
||||
* re-invent the wheel.
|
||||
*/
|
||||
|
||||
#ifndef SPACING_H
|
||||
#define SPACING_H
|
||||
#ifndef TEX2LYX_SPACING_H
|
||||
#define TEX2LYX_SPACING_H
|
||||
|
||||
#include <string>
|
||||
|
||||
@ -40,4 +40,4 @@ public:
|
||||
|
||||
} // namespace lyx
|
||||
|
||||
#endif // NOT SPACING_H
|
||||
#endif // TEX2LYX_SPACING_H
|
||||
|
Loading…
Reference in New Issue
Block a user