Fix distcheck
[anjuta-extras.git] / plugins / scintilla / scintilla / Makefile.am
blobb8a2e4652c28d31ddf4e9f3f7a8e7a44be24eccb
1 ## Process this file with automake to produce Makefile.in
3 SUBDIRS = include
5 noinst_LTLIBRARIES = libanjuta-scintilla.la
7 AM_CPPFLAGS = \
8         -I$(srcdir)/include \
9         -I$(srcdir)/src \
10         -I$(srcdir)/lexlib \
11         $(LIBANJUTA_CFLAGS) \
12         $(GTHREAD_CFLAGS) \
13         $(GMODULE_CFLAGS) \
14         -DGTK -DSCI_LEXER -DUSE_XIM
16 AM_CXXFLAGS = -DGTK -DSCI_LEXER -DUSE_XIM -std=c++11
18 include $(srcdir)/lexers.make
20 libanjuta_scintilla_la_SOURCES =\
21         src/AutoComplete.cxx \
22         src/AutoComplete.h \
23         src/CallTip.cxx \
24         src/CallTip.h \
25         src/CaseConvert.cxx \
26         src/CaseConvert.h \
27         src/CaseFolder.cxx \
28         src/CaseFolder.h \
29         src/Catalogue.cxx \
30         src/Catalogue.h \
31         src/CellBuffer.cxx \
32         src/CellBuffer.h \
33         src/CharClassify.cxx \
34         src/CharClassify.h \
35         src/ContractionState.cxx \
36         src/ContractionState.h \
37         src/Decoration.cxx \
38         src/Decoration.h \
39         src/Document.cxx \
40         src/Document.h \
41         src/EditModel.cxx \
42         src/EditModel.h \
43         src/Editor.cxx \
44         src/Editor.h \
45         src/EditView.cxx \
46         src/EditView.h \
47         src/ExternalLexer.cxx \
48         src/ExternalLexer.h \
49         src/FontQuality.h \
50         src/Indicator.cxx \
51         src/Indicator.h \
52         src/KeyMap.cxx \
53         src/KeyMap.h \
54         src/LineMarker.cxx \
55         src/LineMarker.h \
56         src/MarginView.cxx \
57         src/MarginView.h \
58         src/Partitioning.h \
59         src/PerLine.h \
60         src/PerLine.cxx \
61         src/PositionCache.cxx \
62         src/PositionCache.h \
63         src/Position.h \
64         src/RESearch.cxx \
65         src/RESearch.h \
66         src/RunStyles.cxx \
67         src/RunStyles.h \
68         src/ScintillaBase.cxx \
69         src/ScintillaBase.h \
70         src/Selection.cxx \
71         src/Selection.h \
72         src/SparseVector.h \
73         src/SplitVector.h \
74         src/Style.cxx \
75         src/Style.h \
76         src/SVector.h \
77         src/UnicodeFromUTF8.h \
78         src/UniConversion.cxx \
79         src/UniConversion.h \
80         src/UniqueString.h \
81         src/ViewStyle.cxx \
82         src/ViewStyle.h\
83         src/XPM.cxx\
84         src/XPM.h\
85         lexlib/Accessor.cxx \
86         lexlib/Accessor.h \
87         lexlib/CharacterCategory.cxx \
88         lexlib/CharacterCategory.h \
89         lexlib/CharacterSet.cxx \
90         lexlib/CharacterSet.h \
91         lexlib/LexAccessor.h \
92         lexlib/LexerBase.cxx \
93         lexlib/LexerBase.h \
94         lexlib/LexerModule.cxx \
95         lexlib/LexerModule.h \
96         lexlib/LexerNoExceptions.cxx \
97         lexlib/LexerNoExceptions.h \
98         lexlib/LexerSimple.cxx \
99         lexlib/LexerSimple.h \
100         lexlib/OptionSet.h \
101         lexlib/PropSetSimple.cxx \
102         lexlib/PropSetSimple.h \
103         lexlib/SparseState.h \
104         lexlib/StringCopy.h \
105         lexlib/StyleContext.cxx\
106         lexlib/StyleContext.h\
107         lexlib/SubStyles.h \
108         lexlib/WordList.cxx \
109         lexlib/WordList.h \
110         gtk/Converter.h \
111         gtk/PlatGTK.cxx \
112         gtk/ScintillaGTKAccessible.cxx \
113         gtk/ScintillaGTKAccessible.h \
114         gtk/ScintillaGTK.cxx \
115         gtk/ScintillaGTK.h \
116         $(LEXER_SRCS) \
117         $(BUILT_SOURCES)
119 libanjuta_scintilla_la_LIBADD = \
120         $(LIBANJUTA_LIBS) \
121         $(GTHREAD_LIBS) \
122         $(GMODULE_LIBS)
124 noinst_PROGRAMS = test-scintilla
126 test_scintilla_CXXFLAGS = -DGTK
127 test_scintilla_SOURCES = test-scintilla.cxx
128 test_scintilla_LDADD = libanjuta-scintilla.la
130 $(srcdir)/lexers.make:
131         cd $(srcdir); \
132         echo "## Lexers make file" > $(notdir $@); \
133         echo -n 'LEXER_OBJS = ' >> $(notdir $@); \
134         for lex in lexers/*.cxx; do \
135                 echo '\' >> $(notdir $@); \
136                 lex=`echo $$lex | sed -e "s/cxx$$/o/"`; \
137                 echo -n "       $$lex" >> $(notdir $@); \
138         done; \
139         echo "" >> $(notdir $@); \
140         echo "" >> $(notdir $@); \
141         echo -n 'LEXER_SRCS = ' >> $(notdir $@); \
142         for lex in lexers/*.cxx; do \
143                 echo '\' >> $(notdir $@); \
144                 echo -n "       $$lex" >> $(notdir $@); \
145         done; \
146         echo "" >> $(notdir $@)
148 update-scintilla:
149         cd $(srcdir); \
150         cp scintilla/gtk/*.cxx gtk; \
151         cp scintilla/gtk/*.h gtk; \
152         cp scintilla/gtk/*.list gtk; \
153         cp scintilla/lexers/*.cxx lexers; \
154         cp scintilla/lexlib/*.cxx lexlib; \
155         cp scintilla/lexlib/*.h lexlib; \
156         cp scintilla/src/*.cxx src; \
157         cp scintilla/src/*.h src; \
158         cp scintilla/include/*.h include; \
159         cp scintilla/include/*.py include; \
160         cp scintilla/include/*.iface include; \
161         echo "Patching files ..."
162         cd $(srcdir); \
163         for patchfile in patches/*.diff; do \
164                 patch -p0 < $$patchfile || true; \
165         done
166         echo "Updating properties file..."
167         cd $(srcdir); \
168         ./update-properties.pl ../properties/styles.properties scite/src
170 BUILT_SOURCES=scintilla-marshal.c scintilla-marshal.h
173 scintilla-marshal.h: gtk/scintilla-marshal.list
174         $(AM_V_GEN)@GLIB_GENMARSHAL@  --prefix scintilla_marshal $(srcdir)/gtk/scintilla-marshal.list --header > xgen-gmc \
175         && cp xgen-gmc $(@F) \
176         && rm -f xgen-gmc
178 scintilla-marshal.c: gtk/scintilla-marshal.list
179         $(AM_V_GEN)echo "#include \"scintilla-marshal.h\"" > xgenc-gmc \
180             && @GLIB_GENMARSHAL@  --prefix scintilla_marshal $(srcdir)/gtk/scintilla-marshal.list --body >> xgenc-gmc \
181         && cp xgenc-gmc $(@F) \
182         && rm -f xgenc-gmc
184 EXTRA_DIST=lexers.make \
185         gtk/scintilla-marshal.list