Tokenize 001234 as 1234. Include a testing function in NoiseFilter to figure out...
[beagle.git] / beagled / Makefile.am
blob703c74821974f2f94c4af48e77fc18f1eb9aa66f
2 # Warnings we don't want to see.
3 # Most of these are thanks to DotLucene.  It would be nice if we could use
4 # "#pragma warning" on these.
6 # 0162 = Unreachable code detected
7 # 0164 = This label has not been referenced
8 # 0168 = The variable 'foo' is declared but never used
9 # 0169 = The private method/field 'foo' is never used
10 # 0219 = Variable is assigned but never used
11 # 0436 = Ignore imported type (local SqliteClient)
13 # unsafe arg for Mono.Data.SqliteClient fork
14 CSC = $(MCS) -debug -nowarn:0162,0164,0168,0169,0219,0436 -unsafe
16 BACKENDDIR = $(pkglibdir)/Backends
18 PLUGIN_TARGET = BeagleDaemonPlugins.dll
20 PLUGIN_CSFLAGS = -target:library
22 PLUGIN_CSFILES =                        \
23         $(srcdir)/Flavor.cs             \
24         $(srcdir)/Filter.cs
26 PLUGIN_LOCAL_ASSEMBLIES =               \
27         ../Util/Util.dll                \
28         ../BeagleClient/Beagle.dll
30 PLUGIN_ASSEMBLIES =                             \
31         -r:Mono.Posix                           \
32         $(BEAGLED_LIBS)                         \
33         $(PLUGIN_LOCAL_ASSEMBLIES:%=-r:%)
36 $(PLUGIN_TARGET): $(PLUGIN_CSFILES) $(PLUGIN_LOCAL_ASSEMBLIES)
37         $(CSC) -out:$@ $(PLUGIN_CSFLAGS) $(PLUGIN_CSFILES) $(PLUGIN_ASSEMBLIES)
39 ############################################################
41 WRAPPER_IN = wrapper.in
42 WRAPPER_SED = sed                                       \
43         -e "s|\@prefix\@|$(prefix)|g"                   \
44         -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
45         -e "s|\@libdir\@|$(libdir)|g"                   \
46         -e "s|\@evolibdir\@|$(EVO_LIBDIR)|g"            \
47         -e "s|\@gacprefix\@|$(GAC_PREFIX)|g"            \
48         -e "s|\@bash\@|$(BASH)|"                        \
49         -e "s|\@wrapper\@|$@|g"
51 ############################################################
53 lucenedir = $(srcdir)/Lucene.Net
55 LUCENE_1_9_CSFILES =                                                    \
56         $(lucenedir)/Analysis/Standard/CharStream.cs    \
57         $(lucenedir)/Analysis/Standard/FastCharStream.cs        \
58         $(lucenedir)/Analysis/Standard/ParseException.cs        \
59         $(lucenedir)/Analysis/Standard/StandardAnalyzer.cs      \
60         $(lucenedir)/Analysis/Standard/StandardFilter.cs        \
61         $(lucenedir)/Analysis/Standard/StandardTokenizer.cs     \
62         $(lucenedir)/Analysis/Standard/StandardTokenizerConstants.cs    \
63         $(lucenedir)/Analysis/Standard/StandardTokenizerTokenManager.cs \
64         $(lucenedir)/Analysis/Standard/Token.cs \
65         $(lucenedir)/Analysis/Standard/TokenMgrError.cs \
66         $(lucenedir)/Analysis/Analyzer.cs       \
67         $(lucenedir)/Analysis/CharTokenizer.cs  \
68         $(lucenedir)/Analysis/ISOLatin1AccentFilter.cs  \
69         $(lucenedir)/Analysis/KeywordAnalyzer.cs        \
70         $(lucenedir)/Analysis/KeywordTokenizer.cs       \
71         $(lucenedir)/Analysis/LengthFilter.cs   \
72         $(lucenedir)/Analysis/LetterTokenizer.cs        \
73         $(lucenedir)/Analysis/LowerCaseFilter.cs        \
74         $(lucenedir)/Analysis/LowerCaseTokenizer.cs     \
75         $(lucenedir)/Analysis/PerFieldAnalyzerWrapper.cs        \
76         $(lucenedir)/Analysis/PorterStemFilter.cs       \
77         $(lucenedir)/Analysis/PorterStemmer.cs  \
78         $(lucenedir)/Analysis/SimpleAnalyzer.cs \
79         $(lucenedir)/Analysis/StopAnalyzer.cs   \
80         $(lucenedir)/Analysis/StopFilter.cs     \
81         $(lucenedir)/Analysis/Token.cs  \
82         $(lucenedir)/Analysis/TokenFilter.cs    \
83         $(lucenedir)/Analysis/Tokenizer.cs      \
84         $(lucenedir)/Analysis/TokenStream.cs    \
85         $(lucenedir)/Analysis/WhitespaceAnalyzer.cs     \
86         $(lucenedir)/Analysis/WhitespaceTokenizer.cs    \
87         $(lucenedir)/Analysis/WordlistLoader.cs \
88         $(lucenedir)/Document/DateField.cs      \
89         $(lucenedir)/Document/DateTools.cs      \
90         $(lucenedir)/Document/Document.cs       \
91         $(lucenedir)/Document/Field.cs  \
92         $(lucenedir)/Document/NumberTools.cs    \
93         $(lucenedir)/Index/CompoundFileReader.cs        \
94         $(lucenedir)/Index/CompoundFileWriter.cs        \
95         $(lucenedir)/Index/DocumentWriter.cs    \
96         $(lucenedir)/Index/FieldInfo.cs \
97         $(lucenedir)/Index/FieldInfos.cs        \
98         $(lucenedir)/Index/FieldsReader.cs      \
99         $(lucenedir)/Index/FieldsWriter.cs      \
100         $(lucenedir)/Index/FilterIndexReader.cs \
101         $(lucenedir)/Index/IndexFileNameFilter.cs       \
102         $(lucenedir)/Index/IndexFileNames.cs    \
103         $(lucenedir)/Index/IndexModifier.cs     \
104         $(lucenedir)/Index/IndexReader.cs       \
105         $(lucenedir)/Index/IndexWriter.cs       \
106         $(lucenedir)/Index/MultipleTermPositions.cs     \
107         $(lucenedir)/Index/MultiReader.cs       \
108         $(lucenedir)/Index/ParallelReader.cs    \
109         $(lucenedir)/Index/SegmentInfo.cs       \
110         $(lucenedir)/Index/SegmentInfos.cs      \
111         $(lucenedir)/Index/SegmentMergeInfo.cs  \
112         $(lucenedir)/Index/SegmentMergeQueue.cs \
113         $(lucenedir)/Index/SegmentMerger.cs     \
114         $(lucenedir)/Index/SegmentReader.cs     \
115         $(lucenedir)/Index/SegmentTermDocs.cs   \
116         $(lucenedir)/Index/SegmentTermEnum.cs   \
117         $(lucenedir)/Index/SegmentTermPositions.cs      \
118         $(lucenedir)/Index/SegmentTermPositionVector.cs \
119         $(lucenedir)/Index/SegmentTermVector.cs \
120         $(lucenedir)/Index/Term.cs      \
121         $(lucenedir)/Index/TermBuffer.cs        \
122         $(lucenedir)/Index/TermDocs.cs  \
123         $(lucenedir)/Index/TermEnum.cs  \
124         $(lucenedir)/Index/TermFreqVector.cs    \
125         $(lucenedir)/Index/TermInfo.cs  \
126         $(lucenedir)/Index/TermInfosReader.cs   \
127         $(lucenedir)/Index/TermInfosWriter.cs   \
128         $(lucenedir)/Index/TermPositions.cs     \
129         $(lucenedir)/Index/TermPositionVector.cs        \
130         $(lucenedir)/Index/TermVectorOffsetInfo.cs      \
131         $(lucenedir)/Index/TermVectorsReader.cs \
132         $(lucenedir)/Index/TermVectorsWriter.cs \
133         $(lucenedir)/QueryParser/CharStream.cs  \
134         $(lucenedir)/QueryParser/FastCharStream.cs      \
135         $(lucenedir)/QueryParser/MultiFieldQueryParser.cs       \
136         $(lucenedir)/QueryParser/ParseException.cs      \
137         $(lucenedir)/QueryParser/QueryParser.cs \
138         $(lucenedir)/QueryParser/QueryParserConstants.cs        \
139         $(lucenedir)/QueryParser/QueryParserTokenManager.cs     \
140         $(lucenedir)/QueryParser/Token.cs       \
141         $(lucenedir)/QueryParser/TokenMgrError.cs       \
142         $(lucenedir)/Search/Regex/RegexQuery.cs \
143         $(lucenedir)/Search/Regex/RegexTermEnum.cs      \
144         $(lucenedir)/Search/Regex/SpanRegexQuery.cs     \
145         $(lucenedir)/Search/Spans/NearSpans.cs  \
146         $(lucenedir)/Search/Spans/SpanFirstQuery.cs     \
147         $(lucenedir)/Search/Spans/SpanNearQuery.cs      \
148         $(lucenedir)/Search/Spans/SpanNotQuery.cs       \
149         $(lucenedir)/Search/Spans/SpanOrQuery.cs        \
150         $(lucenedir)/Search/Spans/SpanQuery.cs  \
151         $(lucenedir)/Search/Spans/Spans.cs      \
152         $(lucenedir)/Search/Spans/SpanScorer.cs \
153         $(lucenedir)/Search/Spans/SpanTermQuery.cs      \
154         $(lucenedir)/Search/Spans/SpanWeight.cs \
155         $(lucenedir)/Search/BooleanClause.cs    \
156         $(lucenedir)/Search/BooleanQuery.cs     \
157         $(lucenedir)/Search/BooleanScorer.cs    \
158         $(lucenedir)/Search/BooleanScorer2.cs   \
159         $(lucenedir)/Search/CachingWrapperFilter.cs     \
160         $(lucenedir)/Search/ConjunctionScorer.cs        \
161         $(lucenedir)/Search/ConstantScoreQuery.cs       \
162         $(lucenedir)/Search/ConstantScoreRangeQuery.cs  \
163         $(lucenedir)/Search/DateFilter.cs       \
164         $(lucenedir)/Search/DefaultSimilarity.cs        \
165         $(lucenedir)/Search/DisjunctionMaxQuery.cs      \
166         $(lucenedir)/Search/DisjunctionMaxScorer.cs     \
167         $(lucenedir)/Search/DisjunctionSumScorer.cs     \
168         $(lucenedir)/Search/ExactPhraseScorer.cs        \
169         $(lucenedir)/Search/Explanation.cs      \
170         $(lucenedir)/Search/FieldCache.cs       \
171         $(lucenedir)/Search/FieldCacheImpl.cs   \
172         $(lucenedir)/Search/FieldDoc.cs \
173         $(lucenedir)/Search/FieldDocSortedHitQueue.cs   \
174         $(lucenedir)/Search/FieldSortedHitQueue.cs      \
175         $(lucenedir)/Search/Filter.cs   \
176         $(lucenedir)/Search/FilteredQuery.cs    \
177         $(lucenedir)/Search/FilteredTermEnum.cs \
178         $(lucenedir)/Search/FuzzyQuery.cs       \
179         $(lucenedir)/Search/FuzzyTermEnum.cs    \
180         $(lucenedir)/Search/Hit.cs      \
181         $(lucenedir)/Search/HitCollector.cs     \
182         $(lucenedir)/Search/HitIterator.cs      \
183         $(lucenedir)/Search/HitQueue.cs \
184         $(lucenedir)/Search/Hits.cs     \
185         $(lucenedir)/Search/IndexSearcher.cs    \
186         $(lucenedir)/Search/MatchAllDocsQuery.cs        \
187         $(lucenedir)/Search/MultiPhraseQuery.cs \
188         $(lucenedir)/Search/MultiSearcher.cs    \
189         $(lucenedir)/Search/MultiTermQuery.cs   \
190         $(lucenedir)/Search/NonMatchingScorer.cs        \
191         $(lucenedir)/Search/ParallelMultiSearcher.cs    \
192         $(lucenedir)/Search/PhrasePositions.cs  \
193         $(lucenedir)/Search/PhrasePrefixQuery.cs        \
194         $(lucenedir)/Search/PhraseQuery.cs      \
195         $(lucenedir)/Search/PhraseQueue.cs      \
196         $(lucenedir)/Search/PhraseScorer.cs     \
197         $(lucenedir)/Search/PrefixQuery.cs      \
198         $(lucenedir)/Search/Query.cs    \
199         $(lucenedir)/Search/QueryFilter.cs      \
200         $(lucenedir)/Search/QueryTermVector.cs  \
201         $(lucenedir)/Search/RangeFilter.cs      \
202         $(lucenedir)/Search/RangeQuery.cs       \
203         $(lucenedir)/Search/RemoteSearchable.cs \
204         $(lucenedir)/Search/ReqExclScorer.cs    \
205         $(lucenedir)/Search/ReqOptSumScorer.cs  \
206         $(lucenedir)/Search/ScoreDoc.cs \
207         $(lucenedir)/Search/ScoreDocComparator.cs       \
208         $(lucenedir)/Search/Scorer.cs   \
209         $(lucenedir)/Search/Searchable.cs       \
210         $(lucenedir)/Search/Searcher.cs \
211         $(lucenedir)/Search/Similarity.cs       \
212         $(lucenedir)/Search/SimilarityDelegator.cs      \
213         $(lucenedir)/Search/SloppyPhraseScorer.cs       \
214         $(lucenedir)/Search/Sort.cs     \
215         $(lucenedir)/Search/SortComparator.cs   \
216         $(lucenedir)/Search/SortComparatorSource.cs     \
217         $(lucenedir)/Search/SortField.cs        \
218         $(lucenedir)/Search/TermQuery.cs        \
219         $(lucenedir)/Search/TermScorer.cs       \
220         $(lucenedir)/Search/TopDocs.cs  \
221         $(lucenedir)/Search/TopFieldDocs.cs     \
222         $(lucenedir)/Search/Weight.cs   \
223         $(lucenedir)/Search/WildcardQuery.cs    \
224         $(lucenedir)/Search/WildcardTermEnum.cs \
225         $(lucenedir)/Store/BufferedIndexInput.cs        \
226         $(lucenedir)/Store/BufferedIndexOutput.cs       \
227         $(lucenedir)/Store/Directory.cs \
228         $(lucenedir)/Store/FSDirectory.cs       \
229         $(lucenedir)/Store/IndexInput.cs        \
230         $(lucenedir)/Store/IndexOutput.cs       \
231         $(lucenedir)/Store/InputStream.cs       \
232         $(lucenedir)/Store/Lock.cs      \
233         $(lucenedir)/Store/MMapDirectory.cs     \
234         $(lucenedir)/Store/OutputStream.cs      \
235         $(lucenedir)/Store/RAMDirectory.cs      \
236         $(lucenedir)/Store/RAMFile.cs   \
237         $(lucenedir)/Store/RAMInputStream.cs    \
238         $(lucenedir)/Store/RAMOutputStream.cs   \
239         $(lucenedir)/Util/BitVector.cs  \
240         $(lucenedir)/Util/Constants.cs  \
241         $(lucenedir)/Util/Parameter.cs  \
242         $(lucenedir)/Util/PriorityQueue.cs      \
243         $(lucenedir)/Util/SmallFloat.cs \
244         $(lucenedir)/Util/StringHelper.cs       \
245         $(lucenedir)/Util/ToStringUtils.cs      \
246         $(lucenedir)/AssemblyInfo.cs    \
247         $(lucenedir)/LucenePackage.cs   \
248         $(lucenedir)/SharpZipLibAdapter.cs      \
249         $(lucenedir)/SupportClass.cs
251 LUCENE_CSFILES = $(LUCENE_1_9_CSFILES)
253 ############################################################
255 sqlitedir = $(srcdir)/Mono.Data.SqliteClient
257 SQLITE_CSFILES =                                        \
258         $(sqlitedir)/SqliteCommand.cs                   \
259         $(sqlitedir)/SqliteConnection.cs                \
260         $(sqlitedir)/Sqlite.cs                          \
261         $(sqlitedir)/SqliteDataAdapter.cs               \
262         $(sqlitedir)/SqliteDataReader.cs                \
263         $(sqlitedir)/SqliteExceptions.cs                \
264         $(sqlitedir)/SqliteParameterCollection.cs       \
265         $(sqlitedir)/SqliteParameter.cs                 \
266         $(sqlitedir)/SqliteRowUpdatedEventArgs.cs       \
267         $(sqlitedir)/SqliteRowUpdatedEventHandler.cs    \
268         $(sqlitedir)/SqliteRowUpdatingEventArgs.cs      \
269         $(sqlitedir)/SqliteRowUpdatingEventHandler.cs   \
270         $(sqlitedir)/SqliteTransaction.cs
272 ############################################################
274 DAEMON_DLL_TARGET = BeagleDaemonLib.dll
276 DAEMON_DLL_CSFLAGS = -target:library $(BEAGLE_DEFINES)
278 fsqueryabledir = $(srcdir)/FileSystemQueryable
279 FILE_SYSTEM_QUERYABLE_CSFILES =                                 \
280         $(fsqueryabledir)/DirectoryModel.cs                     \
281         $(fsqueryabledir)/DirectoryState.cs                     \
282         $(fsqueryabledir)/TreeCrawlTask.cs                      \
283         $(fsqueryabledir)/FileCrawlTask.cs                      \
284         $(fsqueryabledir)/DirectoryIndexableGenerator.cs        \
285         $(fsqueryabledir)/FileNameFilter.cs                     \
286         $(fsqueryabledir)/LuceneNameResolver.cs                 \
287         $(fsqueryabledir)/FileSystemQueryable.cs                \
288         $(fsqueryabledir)/IFileEventBackend.cs                  \
289         $(fsqueryabledir)/InotifyBackend.cs                     \
290         $(fsqueryabledir)/NullFileEventBackend.cs
293 gaimlogqueryable = $(srcdir)/GaimLogQueryable
294 GAIM_LOG_QUERYABLE_CSFILES =                            \
295         $(gaimlogqueryable)/GaimLogQueryable.cs
297 tomboyqueryable = $(srcdir)/TomboyQueryable
298 TOMBOY_QUERYABLE_CSFILES =                              \
299         $(tomboyqueryable)/TomboyQueryable.cs
301 labyrinthqueryable = $(srcdir)/LabyrinthQueryable
302 LABYRINTH_QUERYABLE_CSFILES =                           \
303         $(labyrinthqueryable)/LabyrinthQueryable.cs
305 kmailqueryable = $(srcdir)/KMailQueryable
306 KMAIL_QUERYABLE_CSFILES =                               \
307         $(kmailqueryable)/KMailQueryable.cs             \
308         $(kmailqueryable)/KMailIndexableGenerator.cs    \
309         $(kmailqueryable)/KMailIndexer.cs
311 blamqueryable = $(srcdir)/BlamQueryable
312 BLAM_QUERYABLE_CSFILES =                                \
313         $(blamqueryable)/BlamQueryable.cs
315 lifereaqueryable = $(srcdir)/LifereaQueryable
316 LIFEREA_QUERYABLE_CSFILES =                             \
317         $(lifereaqueryable)/LifereaQueryable.cs
319 akregatorqueryable = $(srcdir)/AkregatorQueryable
320 AKREGATOR_QUERYABLE_CSFILES =                           \
321         $(akregatorqueryable)/AkregatorQueryable.cs
323 konqhistoryqueryable = $(srcdir)/KonqHistoryQueryable
324 KONQHISTORY_QUERYABLE_CSFILES =                         \
325         $(konqhistoryqueryable)/KonqQueryable.cs
327 konqbookmarkqueryable = $(srcdir)/KonqBookmarkQueryable
328 KONQBOOKMARK_QUERYABLE_CSFILES =                                \
329         $(konqbookmarkqueryable)/KonqBookmarkQueryable.cs
331 kopetequeryable = $(srcdir)/KopeteQueryable
332 KOPETE_QUERYABLE_CSFILES =                              \
333         $(kopetequeryable)/KopeteQueryable.cs           \
334         $(kopetequeryable)/KopeteCrawler.cs
336 knotesqueryable = $(srcdir)/KNotesQueryable
337 KNOTES_QUERYABLE_CSFILES =                              \
338         $(knotesqueryable)/KNotesQueryable.cs
340 kabcqueryable = $(srcdir)/KAddressBookQueryable
341 KABC_QUERYABLE_CSFILES =                                \
342         $(kabcqueryable)/KabcQueryable.cs
344 indexingservicequeryable = $(srcdir)/IndexingServiceQueryable
345 INDEXING_SERVICE_QUERYABLE_CSFILES =                    \
346         $(indexingservicequeryable)/IndexingServiceQueryable.cs
348 DAEMON_DLL_CSFILES =                                            \
349         $(LUCENE_CSFILES)                                       \
350         $(KMAIL_QUERYABLE_CSFILES)                              \
351         $(FILE_SYSTEM_QUERYABLE_CSFILES)                        \
352         $(GAIM_LOG_QUERYABLE_CSFILES)                           \
353         $(INDEXING_SERVICE_QUERYABLE_CSFILES)                   \
354         $(TOMBOY_QUERYABLE_CSFILES)                             \
355         $(LABYRINTH_QUERYABLE_CSFILES)                          \
356         $(BLAM_QUERYABLE_CSFILES)                               \
357         $(LIFEREA_QUERYABLE_CSFILES)                            \
358         $(AKREGATOR_QUERYABLE_CSFILES)                          \
359         $(KONQHISTORY_QUERYABLE_CSFILES)                        \
360         $(KONQBOOKMARK_QUERYABLE_CSFILES)                       \
361         $(KNOTES_QUERYABLE_CSFILES)                             \
362         $(KABC_QUERYABLE_CSFILES)                               \
363         $(KOPETE_QUERYABLE_CSFILES)                             \
364         $(srcdir)/AssemblyInfo.cs                               \
365         $(srcdir)/FileAttributes.cs                             \
366         $(srcdir)/FileAttributesStore.cs                        \
367         $(srcdir)/FileAttributesStore_ExtendedAttribute.cs      \
368         $(srcdir)/FileAttributesStore_Mixed.cs                  \
369         $(srcdir)/FileAttributesStore_Sqlite.cs                 \
370         $(srcdir)/FilterFactory.cs                              \
371         $(srcdir)/IFileAttributesStore.cs                       \
372         $(srcdir)/IIndexer.cs                                   \
373         $(srcdir)/IndexSynchronization.cs                       \
374         $(srcdir)/IndexerReceipts.cs                            \
375         $(srcdir)/IndexerRequest.cs                             \
376         $(srcdir)/IQueryResult.cs                               \
377         $(srcdir)/IQueryWorker.cs                               \
378         $(srcdir)/IQueryable.cs                                 \
379         $(srcdir)/LuceneBitArray.cs                             \
380         $(srcdir)/LuceneCommon.cs                               \
381         $(srcdir)/LuceneIndexingDriver.cs                       \
382         $(srcdir)/LuceneQueryingDriver.cs                       \
383         $(srcdir)/LuceneFileQueryable.cs                        \
384         $(srcdir)/LuceneQueryable.cs                            \
385         $(srcdir)/NoiseFilter.cs                                \
386         $(srcdir)/PropertyKeywordFu.cs                          \
387         $(srcdir)/QueryDriver.cs                                \
388         $(srcdir)/QueryExecutor.cs                              \
389         $(srcdir)/QueryResult.cs                                \
390         $(srcdir)/QueryStringParser.cs                          \
391         $(srcdir)/Queryable.cs                                  \
392         $(srcdir)/QueryableFlavor.cs                            \
393         $(srcdir)/RemoteControlExecutors.cs                     \
394         $(srcdir)/RemoteIndexerRequest.cs                       \
395         $(srcdir)/RemoteIndexerResponse.cs                      \
396         $(srcdir)/Server.cs                                     \
397         $(srcdir)/Shutdown.cs                                   \
398         $(srcdir)/SnippetExecutor.cs                            \
399         $(srcdir)/SnippetFu.cs                                  \
400         $(srcdir)/SqliteUtils.cs                                \
401         $(srcdir)/StaticQueryable.cs                            \
402         $(srcdir)/TextCache.cs
404 DAEMON_DLL_LOCAL_ASSEMBLIES =           \
405         ../Util/Util.dll                \
406         ../BeagleClient/Beagle.dll      \
407         ./$(PLUGIN_TARGET)
409 DAEMON_DLL_ASSEMBLIES =                         \
410         $(BEAGLED_LIBS)                         \
411         $(DAEMON_DLL_LOCAL_ASSEMBLIES:%=-r:%)   \
412         $(SHARPZIPLIB_LIBS)             \
413         -r:Mono.Data.SqliteClient               \
414         -r:Mono.Posix                           \
415         -r:System.Runtime.Remoting              \
416         -r:System.Web
418 if USE_LOCAL_SQLITE
419 DAEMON_DLL_CSFILES += $(SQLITE_CSFILES)
420 DAEMON_DLL_ASSEMBLIES += -r:System.Data
421 else
422 DAEMON_DLL_ASSEMBLIES += -r:Mono.Data.SqliteClient
423 endif
425 if ENABLE_GOOGLEDRIVER
426 DAEMON_DLL_CSFILES +=                  \
427        $(srcdir)/GoogleDriver.cs
428 endif
430 $(DAEMON_DLL_TARGET): $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES)
431         $(CSC) -out:$@ $(DAEMON_DLL_CSFLAGS) $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_ASSEMBLIES)
433 ############################################################
436 ### Pluggable backend support
439 BACKEND_CSFLAGS = -target:library
440 BACKEND_LOCAL_ASSEMBLIES =                      \
441         ../Util/Util.dll                        \
442         ../BeagleClient/Beagle.dll              \
443         ./$(DAEMON_DLL_TARGET)
445 BACKEND_ASSEMBLIES =                            \
446         $(SHARPZIPLIB_LIBS)                     \
447         $(BACKEND_LOCAL_ASSEMBLIES:%=-r:%)      \
448         -r:Mono.Posix
451 ### Evolution backend
454 edsqueryable = $(srcdir)/EvolutionDataServerQueryable
455 EDS_QUERYABLE_CSFILES =                                 \
456         $(edsqueryable)/BookContainer.cs                \
457         $(edsqueryable)/CalContainer.cs                 \
458         $(edsqueryable)/Container.cs                    \
459         $(edsqueryable)/EvolutionDataServerQueryable.cs \
460         $(edsqueryable)/SourcesHandler.cs
462 evomailqueryable = $(srcdir)/EvolutionMailDriver
463 EVO_MAIL_QUERYABLE_CSFILES =                                    \
464         $(evomailqueryable)/EvolutionMailDriver.cs              \
465         $(evomailqueryable)/EvolutionMailIndexableGenerator.cs  \
466         $(evomailqueryable)/GConfThreadHelper.cs                \
467         $(evomailqueryable)/MailCrawler.cs
469 EVO_DLL_TARGET = EvolutionBackends.dll
470 EVO_DLL_CSFLAGS = $(BACKEND_CSFLAGS)
471 EVO_DLL_CSFILES =                                       \
472         $(srcdir)/EvolutionBackendsAssemblyInfo.cs      \
473         $(EDS_QUERYABLE_CSFILES)                        \
474         $(EVO_MAIL_QUERYABLE_CSFILES)
475 EVO_DLL_ASSEMBLIES = $(BACKEND_ASSEMBLIES) $(EVO_LIBS)
477 $(EVO_DLL_TARGET): $(EVO_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES) $(DAEMON_DLL_TARGET)
478         $(CSC) -out:$@ $(EVO_DLL_CSFLAGS) $(EVO_DLL_CSFILES) -r:$(DAEMON_DLL_TARGET) $(EVO_DLL_ASSEMBLIES)
480 ############################################################
482 DAEMON_WRAPPER = beagled
483 DAEMON_WRAPPER_IN = beagled.in
484 DAEMON_TARGET = BeagleDaemon.exe
486 $(DAEMON_WRAPPER): $(srcdir)/$(DAEMON_WRAPPER_IN)
487         $(WRAPPER_SED) -e "s|\@target\@|$(DAEMON_TARGET)|g" < $(srcdir)/$(DAEMON_WRAPPER_IN) > $@
488         chmod +x $(DAEMON_WRAPPER)
490 DAEMON_CSFLAGS =                                \
491         -target:exe                             \
492         $(BEAGLE_DEFINES)
494 DAEMON_CSFILES =                                \
495         $(srcdir)/BeagleDaemon.cs               \
496         $(srcdir)/RemoteIndexer.cs
498 DAEMON_LOCAL_ASSEMBLIES =                       \
499         ../Util/Util.dll                        \
500         ../BeagleClient/Beagle.dll              \
501         ./$(PLUGIN_TARGET)                      \
502         ./$(DAEMON_DLL_TARGET)
504 DAEMON_ASSEMBLIES =                             \
505         $(BEAGLED_LIBS)                         \
506         $(SHARPZIPLIB_LIBS)                     \
507         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
508         -r:Mono.Posix
510 $(DAEMON_TARGET): $(DAEMON_CSFILES) $(DAEMON_LOCAL_ASSEMBLIES)
511         $(CSC) -out:$@ $(DAEMON_CSFLAGS) $(DAEMON_CSFILES) $(DAEMON_ASSEMBLIES)
513 if ENABLE_THUNDERBIRD   
514 THUNDERBIRD_DIR = $(srcdir)/ThunderbirdQueryable
516 THUNDERBIRD_TARGET = ThunderbirdBackends.dll
518 THUNDERBIRD_CSFLAGS = -target:library
521 THUNDERBIRD_CSFILES =                                           \
522         $(THUNDERBIRD_DIR)/LuceneAccess.cs                      \
523         $(THUNDERBIRD_DIR)/ThunderbirdIndexer.cs                \
524         $(THUNDERBIRD_DIR)/ThunderbirdIndexableGenerator.cs     \
525         $(THUNDERBIRD_DIR)/ThunderbirdQueryable.cs              \
526         $(THUNDERBIRD_DIR)/ThunderbirdInotify.cs                \
527         $(THUNDERBIRD_DIR)/Mail.cs                              \
528         $(THUNDERBIRD_DIR)/Contact.cs                           \
529         $(THUNDERBIRD_DIR)/Rss.cs                               \
530         $(THUNDERBIRD_DIR)/Nntp.cs                              \
531         $(THUNDERBIRD_DIR)/MoveMail.cs
533 THUNDERBIRD_LOCAL_ASSEMBLIES =          \
534         ../Util/Util.dll                \
535         ../BeagleClient/Beagle.dll      \
536         ./BeagleDaemonLib.dll
538 THUNDERBIRD_ASSEMBLIES =                                \
539         -r:Mono.Posix                           \
540         $(BEAGLED_LIBS)                         \
541         $(THUNDERBIRD_LOCAL_ASSEMBLIES:%=-r:%)
544 $(THUNDERBIRD_TARGET): $(THUNDERBIRD_CSFILES) $(THUNDERBIRD_LOCAL_ASSEMBLIES)
545         $(CSC) -out:$@ $(THUNDERBIRD_CSFLAGS) $(THUNDERBIRD_CSFILES) $(THUNDERBIRD_ASSEMBLIES)
546 endif
548 ############################################################
549 ############################################################
550 ############################################################
552 # This next section is a very good example of why we need real mono support in
553 # automake.  This is a massive wart on our development platform.
555 INDEX_HELPER_WRAPPER = beagled-index-helper
556 INDEX_HELPER_WRAPPER_IN = $(INDEX_HELPER_WRAPPER).in
557 INDEX_HELPER_TARGET = IndexHelper.exe
559 $(INDEX_HELPER_WRAPPER): $(srcdir)/$(INDEX_HELPER_WRAPPER_IN)
560         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_HELPER_TARGET)|g" < $(srcdir)/$(INDEX_HELPER_WRAPPER_IN) > $@
561         chmod +x $(INDEX_HELPER_WRAPPER)
563 INDEX_HELPER_CSFLAGS = -target:exe $(BEAGLE_DEFINES)
565 indexhelperdir = $(srcdir)/IndexHelper
567 INDEX_HELPER_CSFILES =  \
568         $(indexhelperdir)/IndexHelper.cs                \
569         $(indexhelperdir)/RemoteIndexerExecutor.cs
572 INDEX_HELPER_LOCAL_ASSEMBLIES =         \
573         ../Util/Util.dll                \
574         ../BeagleClient/Beagle.dll      \
575         ./$(DAEMON_DLL_TARGET)
577 INDEX_HELPER_ASSEMBLIES = \
578         $(BEAGLED_LIBS)                         \
579         $(SHARPZIPLIB_LIBS)                     \
580         $(INDEX_HELPER_LOCAL_ASSEMBLIES:%=-r:%) \
581         -r:Mono.Posix                           \
582         -r:System.Runtime.Remoting
584 $(INDEX_HELPER_TARGET): $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_LOCAL_ASSEMBLIES)
585         $(CSC) -out:$@ $(INDEX_HELPER_CSFLAGS) $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_ASSEMBLIES)
587 ############################################################
589 EXTRACT_CONTENT_WRAPPER = beagle-extract-content
590 EXTRACT_CONTENT_TARGET = ExtractContent.exe
592 $(EXTRACT_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
593         $(WRAPPER_SED) -e "s|\@target\@|$(EXTRACT_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
594         chmod +x $(EXTRACT_CONTENT_WRAPPER)
597 EXTRACT_CONTENT_CSFLAGS = \
598         -target:exe
600 EXTRACT_CONTENT_CSFILES = \
601         $(srcdir)/ExtractContent.cs
603 EXTRACT_CONTENT_LOCAL_ASSEMBLIES = \
604         ../Util/Util.dll                        \
605         ../BeagleClient/Beagle.dll              \
606         ./$(PLUGIN_TARGET)                      \
607         ./$(DAEMON_DLL_TARGET)
609 EXTRACT_CONTENT_ASSEMBLIES = \
610         $(BEAGLED_LIBS)                         \
611         $(SHARPZIPLIB_LIBS)                     \
612         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
613         -r:Mono.Posix                           \
614         -r:System.Runtime.Remoting
616 $(EXTRACT_CONTENT_TARGET): $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_LOCAL_ASSEMBLIES)
617         $(CSC) -out:$@ $(EXTRACT_CONTENT_CSFLAGS) $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_ASSEMBLIES)
619 ############################################################
621 DUMP_INDEX_WRAPPER = beagle-dump-index
622 DUMP_INDEX_TARGET = DumpIndex.exe
624 $(DUMP_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
625         $(WRAPPER_SED) -e "s|\@target\@|$(DUMP_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
626         chmod +x $(DUMP_INDEX_WRAPPER)
628 DUMP_INDEX_CSFLAGS = \
629         -target:exe
631 DUMP_INDEX_CSFILES = \
632         $(srcdir)/DumpIndex.cs
634 DUMP_INDEX_LOCAL_ASSEMBLIES = \
635         ../Util/Util.dll                        \
636         ../BeagleClient/Beagle.dll              \
637         ./$(PLUGIN_TARGET)                      \
638         ./$(DAEMON_DLL_TARGET)
640 DUMP_INDEX_ASSEMBLIES = \
641         $(BEAGLED_LIBS)                         \
642         $(SHARPZIPLIB_LIBS)                     \
643         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
644         -r:Mono.Posix                           \
645         -r:System.Runtime.Remoting
647 $(DUMP_INDEX_TARGET): $(DUMP_INDEX_CSFILES) $(DUMP_INDEX_LOCAL_ASSEMBLIES)
648         $(CSC) -out:$@ $(DUMP_INDEX_CSFLAGS) $(DUMP_INDEX_CSFILES) $(DUMP_INDEX_ASSEMBLIES)
650 ############################################################
652 INDEX_WEB_CONTENT_WRAPPER = beagle-index-url
653 INDEX_WEB_CONTENT_TARGET = IndexWebContent.exe
655 $(INDEX_WEB_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
656         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_WEB_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
657         chmod +x $(INDEX_WEB_CONTENT_WRAPPER)
660 INDEX_WEB_CONTENT_CSFLAGS = \
661         -target:exe
663 INDEX_WEB_CONTENT_CSFILES = \
664         $(srcdir)/IndexWebContent.cs
666 INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES = \
667         ../Util/Util.dll                        \
668         ../BeagleClient/Beagle.dll              \
669         ./$(PLUGIN_TARGET)                      \
670         ./$(DAEMON_DLL_TARGET)
672 INDEX_WEB_CONTENT_ASSEMBLIES =  \
673         $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES:%=-r:%)
675 $(INDEX_WEB_CONTENT_TARGET): $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES)
676         $(CSC) -out:$@ $(INDEX_WEB_CONTENT_CSFLAGS) $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_ASSEMBLIES)
678 ############################################################
680 MASTER_DELETE_WRAPPER = beagle-master-delete-button
681 MASTER_DELETE_TARGET = MasterDelete.exe
683 $(MASTER_DELETE_WRAPPER): $(srcdir)/$(WRAPPER_IN)
684         $(WRAPPER_SED) -e "s|\@target\@|$(MASTER_DELETE_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
685         chmod +x $(MASTER_DELETE_WRAPPER)
688 MASTER_DELETE_CSFLAGS = \
689         -target:exe
691 MASTER_DELETE_CSFILES = \
692         $(srcdir)/MasterDelete.cs
694 MASTER_DELETE_LOCAL_ASSEMBLIES = \
695         ../Util/Util.dll                        \
696         ../BeagleClient/Beagle.dll              \
697         ./$(PLUGIN_TARGET)                      \
698         ./$(DAEMON_DLL_TARGET)
700 MASTER_DELETE_ASSEMBLIES = \
701         $(BEAGLED_LIBS)                         \
702         $(SHARPZIPLIB_LIBS)                     \
703         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
704         -r:Mono.Posix                           \
705         -r:System.Runtime.Remoting
707 $(MASTER_DELETE_TARGET): $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_LOCAL_ASSEMBLIES)
708         $(CSC) -out:$@ $(MASTER_DELETE_CSFLAGS) $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_ASSEMBLIES)
710 ############################################################
712 SNIPPET_TEST_WRAPPER = beagle-snippet-test
713 SNIPPET_TEST_TARGET = SnippetTest.exe
715 $(SNIPPET_TEST_WRAPPER): $(srcdir)/$(WRAPPER_IN)
716         $(WRAPPER_SED) -e "s|\@target\@|$(SNIPPET_TEST_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
717         chmod +x $(SNIPPET_TEST_WRAPPER)
719 SNIPPET_TEST_CSFLAGS = \
720         -target:exe
722 SNIPPET_TEST_CSFILES = \
723         $(srcdir)/SnippetTest.cs
725 SNIPPET_TEST_LOCAL_ASSEMBLIES = \
726         ../Util/Util.dll                        \
727         ../BeagleClient/Beagle.dll              \
728         ./$(PLUGIN_TARGET)                      \
729         ./$(DAEMON_DLL_TARGET)
731 SNIPPET_TEST_ASSEMBLIES = \
732         $(BEAGLED_LIBS)                         \
733         $(SHARPZIPLIB_LIBS)                     \
734         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
735         -r:Mono.Posix                           \
736         -r:System.Runtime.Remoting
738 $(SNIPPET_TEST_TARGET): $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_LOCAL_ASSEMBLIES)
739         $(CSC) -out:$@ $(SNIPPET_TEST_CSFLAGS) $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_ASSEMBLIES)
741 ############################################################
743 TERM_STATS_WRAPPER = beagle-term-stats
744 TERM_STATS_TARGET = TermStatsTool.exe
746 $(TERM_STATS_WRAPPER): $(srcdir)/$(WRAPPER_IN)
747         $(WRAPPER_SED) -e "s|\@target\@|$(TERM_STATS_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
748         chmod +x $(TERM_STATS_WRAPPER)
750 TERM_STATS_CSFLAGS = \
751         -target:exe
753 TERM_STATS_CSFILES = \
754         $(srcdir)/TermStatsTool.cs
756 TERM_STATS_LOCAL_ASSEMBLIES =   \
757         ../Util/Util.dll                        \
758         ../BeagleClient/Beagle.dll              \
759         ./$(PLUGIN_TARGET)                      \
760         ./$(DAEMON_DLL_TARGET)
762 TERM_STATS_ASSEMBLIES = \
763         $(BEAGLED_LIBS)                         \
764         $(SHARPZIPLIB_LIBS)                     \
765         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
766         -r:Mono.Posix                           \
767         -r:System.Runtime.Remoting
769 $(TERM_STATS_TARGET): $(TERM_STATS_CSFILES) $(TERM_STATS_LOCAL_ASSEMBLIES)
770         $(CSC) -out:$@ $(TERM_STATS_CSFLAGS) $(TERM_STATS_CSFILES) $(TERM_STATS_ASSEMBLIES)
772 ############################################################
774 NAME_INDEX_WRAPPER = beagle-name-index
775 NAME_INDEX_TARGET = NameIndexTool.exe
777 $(NAME_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
778         $(WRAPPER_SED) -e "s|\@target\@|$(NAME_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
779         chmod +x $(NAME_INDEX_WRAPPER)
781 NAME_INDEX_CSFLAGS = \
782         -target:exe
784 NAME_INDEX_CSFILES = \
785         $(srcdir)/NameIndexTool.cs
787 NAME_INDEX_LOCAL_ASSEMBLIES =   \
788         ../Util/Util.dll                        \
789         ../BeagleClient/Beagle.dll              \
790         ./$(PLUGIN_TARGET)                      \
791         ./$(DAEMON_DLL_TARGET)
793 NAME_INDEX_ASSEMBLIES = \
794         $(BEAGLED_LIBS)                         \
795         $(SHARPZIPLIB_LIBS)                     \
796         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
797         -r:Mono.Posix                           \
798         -r:System.Runtime.Remoting
800 $(NAME_INDEX_TARGET): $(NAME_INDEX_CSFILES) $(NAME_INDEX_LOCAL_ASSEMBLIES)
801         $(CSC) -out:$@ $(NAME_INDEX_CSFLAGS) $(NAME_INDEX_CSFILES) $(NAME_INDEX_ASSEMBLIES)
803 ############################################################
805 FS_SANITY_CHECK_WRAPPER = beagle-file-system-sanity-check
806 FS_SANITY_CHECK_TARGET = SanityCheckTool.exe
808 $(FS_SANITY_CHECK_WRAPPER): $(srcdir)/$(WRAPPER_IN)
809         $(WRAPPER_SED) -e "s|\@target\@|$(FS_SANITY_CHECK_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
810         chmod +x $(FS_SANITY_CHECK_WRAPPER)
812 FS_SANITY_CHECK_CSFLAGS = \
813         -target:exe
815 FS_SANITY_CHECK_CSFILES = \
816         $(srcdir)/SanityCheckTool.cs
818 FS_SANITY_CHECK_LOCAL_ASSEMBLIES = \
819         ../Util/Util.dll                        \
820         ../BeagleClient/Beagle.dll              \
821         ./$(PLUGIN_TARGET)                      \
822         ./$(DAEMON_DLL_TARGET)
824 FS_SANITY_CHECK_ASSEMBLIES = \
825         $(BEAGLED_LIBS)                         \
826         $(SHARPZIPLIB_LIBS)                     \
827         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
828         -r:Mono.Posix                           \
829         -r:System.Runtime.Remoting
831 $(FS_SANITY_CHECK_TARGET): $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_LOCAL_ASSEMBLIES)
832         $(CSC) -out:$@ $(FS_SANITY_CHECK_CSFLAGS) $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_ASSEMBLIES)
834 ############################################################
836 BUILD_INDEX_WRAPPER = beagle-build-index
837 BUILD_INDEX_TARGET = BuildIndex.exe
839 $(BUILD_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
840         $(WRAPPER_SED) -e "s|\@target\@|$(BUILD_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
841         chmod +x $(BUILD_INDEX_WRAPPER)
843 BUILD_INDEX_CSFLAGS = \
844         -target:exe
846 BUILD_INDEX_CSFILES = \
847         $(srcdir)/BuildIndex.cs
849 BUILD_INDEX_LOCAL_ASSEMBLIES = \
850         ../Util/Util.dll                        \
851         ../BeagleClient/Beagle.dll              \
852         ./$(PLUGIN_TARGET)                      \
853         ./$(DAEMON_DLL_TARGET)
855 BUILD_INDEX_ASSEMBLIES = \
856         $(BEAGLED_LIBS)                         \
857         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
858         -r:Mono.Posix
860 $(BUILD_INDEX_TARGET): $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_LOCAL_ASSEMBLIES)
861         $(CSC) -out:$@ $(BUILD_INDEX_CSFLAGS) $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_ASSEMBLIES)
863 ############################################################
865 MANAGE_INDEX_WRAPPER = beagle-manage-index
866 MANAGE_INDEX_TARGET = ManageIndex.exe
868 $(MANAGE_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
869         $(WRAPPER_SED) -e "s|\@target\@|$(MANAGE_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
870         chmod +x $(MANAGE_INDEX_WRAPPER)
872 MANAGE_INDEX_CSFLAGS = \
873         -target:exe
875 MANAGE_INDEX_CSFILES = \
876         $(srcdir)/ManageIndex.cs
878 MANAGE_INDEX_LOCAL_ASSEMBLIES = \
879         ../Util/Util.dll                        \
880         ../BeagleClient/Beagle.dll              \
881         ./$(PLUGIN_TARGET)                      \
882         ./$(DAEMON_DLL_TARGET)
884 MANAGE_INDEX_ASSEMBLIES = \
885         $(BEAGLED_LIBS)                         \
886         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
887         -r:Mono.Posix
889 $(MANAGE_INDEX_TARGET): $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_LOCAL_ASSEMBLIES)
890         $(CSC) -out:$@ $(MANAGE_INDEX_CSFLAGS) $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_ASSEMBLIES)
892 ############################################################
894 CRAWL_SYSTEM_IN = beagle-crawl-system.in
895 CRAWL_SYSTEM = beagle-crawl-system
897 $(CRAWL_SYSTEM): $(srcdir)/$(CRAWL_SYSTEM_IN)
898         $(WRAPPER_SEB) -e "s|\@target\@|$(CRAWL_SYSTEM)|g" < $(srcdir)/$(CRAWL_SYSTEM_IN) > $@
899         chmod +x $(CRAWL_SYSTEM)
901 # OK, now back to our regularly scheduled program.  But notice all of the
902 # EXTRA_DIST and CLEANFILES stuff at the bottom of the file.  Yuck.
904 ############################################################
905 ############################################################
906 ############################################################
908 #       $(MASTER_DELETE_TARGET)
910 #       $(FS_SANITY_CHECK_TARGET)
912 ALL_TARGETS =                           \
913         $(PLUGIN_TARGET)                \
914         $(DAEMON_DLL_TARGET)            \
915         $(DAEMON_TARGET)                \
916         $(DAEMON_WRAPPER)               \
917         $(INDEX_HELPER_TARGET)          \
918         $(INDEX_HELPER_WRAPPER)         \
919         $(INDEX_WEB_CONTENT_TARGET)     \
920         $(INDEX_WEB_CONTENT_WRAPPER)    \
921         $(EXTRACT_CONTENT_TARGET)       \
922         $(EXTRACT_CONTENT_WRAPPER)      \
923         $(DUMP_INDEX_TARGET)            \
924         $(SNIPPET_TEST_TARGET)          \
925         $(TERM_STATS_TARGET)            \
926         $(NAME_INDEX_TARGET)            \
927         $(MANAGE_INDEX_TARGET)          \
928         $(MANAGE_INDEX_WRAPPER)         \
929         $(BUILD_INDEX_TARGET)           \
930         $(BUILD_INDEX_WRAPPER)
932 if ENABLE_THUNDERBIRD
933 ALL_TARGETS += $(THUNDERBIRD_TARGET)
934 endif
936 if ENABLE_EVOLUTION
937 ALL_TARGETS +=                          \
938         $(EVO_DLL_TARGET)
939 endif
941 man_MANS =                              \
942         beagled.1                       \
943         beagle-build-index.8            \
944         beagle-manage-index.8
946 all: $(ALL_TARGETS)
948 install-data-local: $(ALL_TARGETS)
949         $(mkinstalldirs) $(DESTDIR)$(bindir)
950         $(mkinstalldirs) $(DESTDIR)$(sbindir)
951         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
952         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
953         $(mkinstalldirs) $(DESTDIR)$(BACKENDDIR)
954 if ENABLE_EVOLUTION
955         $(INSTALL_DATA) $(EVO_DLL_TARGET) $(EVO_DLL_TARGET).mdb $(DESTDIR)$(BACKENDDIR)
956 endif
957         @for i in $(BIN_WRAPPERS); do                                           \
958                 sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;          \
959                 echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i";       \
960                 $(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i || exit 1;    \
961                 rm -f $$i.tmp;                                                  \
962         done
964         @for i in $(SBIN_WRAPPERS); do                                          \
965                 sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;          \
966                 echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(sbindir)/$$i";      \
967                 $(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(sbindir)/$$i || exit 1;   \
968                 rm -f $$i.tmp;                                                  \
969         done
971         @sed -e "s|\#installed=1|installed=1|" < $(INDEX_HELPER_WRAPPER) > $(INDEX_HELPER_WRAPPER).tmp
972         $(INSTALL_SCRIPT) $(INDEX_HELPER_WRAPPER).tmp $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
973         @rm -f $(INDEX_HELPER_WRAPPER).tmp
975         $(INSTALL_DATA) $(PLUGIN_TARGET)                 $(DESTDIR)$(pkglibdir)
976         $(INSTALL_DATA) $(PLUGIN_TARGET).mdb             $(DESTDIR)$(pkglibdir)
977         $(INSTALL_DATA) $(DAEMON_DLL_TARGET)             $(DESTDIR)$(pkglibdir)
978         $(INSTALL_DATA) $(DAEMON_DLL_TARGET).mdb         $(DESTDIR)$(pkglibdir)
979         $(INSTALL_DATA) $(DAEMON_TARGET)                 $(DESTDIR)$(pkglibdir)
980         $(INSTALL_DATA) $(DAEMON_TARGET).mdb             $(DESTDIR)$(pkglibdir)
981         $(INSTALL_DATA) $(EXTRACT_CONTENT_TARGET)        $(DESTDIR)$(pkglibdir)
982         $(INSTALL_DATA) $(EXTRACT_CONTENT_TARGET).mdb    $(DESTDIR)$(pkglibdir)
983         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET)      $(DESTDIR)$(pkglibdir)
984         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET).mdb  $(DESTDIR)$(pkglibdir)
985         $(INSTALL_DATA) $(INDEX_HELPER_TARGET)           $(DESTDIR)$(pkglibdir)
986         $(INSTALL_DATA) $(INDEX_HELPER_TARGET).mdb       $(DESTDIR)$(pkglibdir)
987         $(INSTALL_DATA) $(BUILD_INDEX_TARGET)            $(DESTDIR)$(pkglibdir)
988         $(INSTALL_DATA) $(BUILD_INDEX_TARGET).mdb        $(DESTDIR)$(pkglibdir)
989         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET)           $(DESTDIR)$(pkglibdir)
990         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET).mdb       $(DESTDIR)$(pkglibdir)
991 if ENABLE_THUNDERBIRD
992         $(INSTALL_DATA) $(THUNDERBIRD_TARGET)                 $(DESTDIR)$(BACKENDDIR)
993         $(INSTALL_DATA) $(THUNDERBIRD_TARGET).mdb             $(DESTDIR)$(BACKENDDIR)
994 endif
996 uninstall-local:
997 if ENABLE_THUNDERBIRD
998         rm -f $(DESTDIR)$(BACKENDDIR)/$(THUNDERBIRD_TARGET)
999         rm -f $(DESTDIR)$(BACKENDDIR)/$(THUNDERBIRD_TARGET).mdb
1000 endif
1001 if ENABLE_EVOLUTION
1002         rm -f $(DESTDIR)$(BACKENDDIR)/$(EVO_DLL_TARGET)
1003         rm -f $(DESTDIR)$(BACKENDDIR)/$(EVO_DLL_TARGET).mdb
1004 endif
1006         @for i in $(BIN_WRAPPERS); do                           \
1007                 echo "rm -f $(DESTDIR)$(bindir)/$$i";           \
1008                 rm -f $(DESTDIR)$(bindir)/$$i || exit 1;        \
1009         done
1011         @for i in $(SBIN_WRAPPERS); do                          \
1012                 echo "rm -f $(DESTDIR)$(sbindir)/$$i";          \
1013                 rm -f $(DESTDIR)$(sbindir)/$$i || exit 1;       \
1014         done
1016         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET)
1017         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET).mdb
1018         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET)
1019         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET).mdb
1020         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET)
1021         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET).mdb
1022         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET)
1023         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET).mdb
1024         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
1025         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER).mdb
1026         rm -f $(DESTDIR)$(pkglibdir)/$(EXTRACT_CONTENT_TARGET)
1027         rm -f $(DESTDIR)$(pkglibdir)/$(EXTRACT_CONTENT_TARGET).mdb
1028         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET)
1029         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET).mdb
1030         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET)
1031         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET).mdb
1032         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET)
1033         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET).mdb
1035 BIN_WRAPPERS = \
1036         $(DAEMON_WRAPPER)               \
1037         $(EXTRACT_CONTENT_WRAPPER)      \
1038         $(INDEX_WEB_CONTENT_WRAPPER)
1040 SBIN_WRAPPERS = \
1041         $(BUILD_INDEX_WRAPPER)          \
1042         $(MANAGE_INDEX_WRAPPER)
1044 #       $(MASTER_DELETE_WRAPPER)
1045 #       $(FS_SANITY_CHECK_WRAPPER)
1047 noinst_SCRIPTS= \
1048         $(DUMP_INDEX_WRAPPER)           \
1049         $(SNIPPET_TEST_WRAPPER)         \
1050         $(TERM_STATS_WRAPPER)           \
1051         $(NAME_INDEX_WRAPPER)           
1053 EXTRA_DIST = \
1054         $(WRAPPER_IN)                           \
1055         $(DAEMON_WRAPPER_IN)                    \
1056         $(INDEX_HELPER_WRAPPER_IN)              \
1057         $(man_MANS)                             \
1058         $(PLUGIN_CSFILES)                       \
1059         $(DAEMON_DLL_CSFILES)                   \
1060         $(DAEMON_CSFILES)                       \
1061         $(EVO_DLL_CSFILES)                      \
1062         $(THUNDERBIRD_CSFILES)                  \
1063         $(EXTRACT_CONTENT_CSFILES)              \
1064         $(DUMP_INDEX_CSFILES)                   \
1065         $(INDEX_WEB_CONTENT_CSFILES)            \
1066         $(SNIPPET_TEST_CSFILES)                 \
1067         $(INDEX_HELPER_CSFILES)                 \
1068         $(MASTER_DELETE_CSFILES)                \
1069         $(TERM_STATS_CSFILES)                   \
1070         $(NAME_INDEX_CSFILES)                   \
1071         $(FS_SANITY_CHECK_CSFILES)              \
1072         $(MANAGE_INDEX_CSFILES)                 \
1073         $(BUILD_INDEX_CSFILES)
1075 CLEANFILES = \
1076         $(PLUGIN_TARGET)                        \
1077         $(PLUGIN_TARGET).mdb                    \
1078         $(DAEMON_DLL_TARGET)                    \
1079         $(DAEMON_DLL_TARGET).mdb                \
1080         $(DAEMON_TARGET)                        \
1081         $(DAEMON_TARGET).mdb                    \
1082         $(DAEMON_WRAPPER)                       \
1083         $(EVO_DLL_TARGET)                       \
1084         $(EVO_DLL_TARGET).mdb                   \
1085         $(INDEX_HELPER_TARGET)                  \
1086         $(INDEX_HELPER_TARGET).mdb              \
1087         $(INDEX_HELPER_WRAPPER)                 \
1088         $(EXTRACT_CONTENT_TARGET)               \
1089         $(EXTRACT_CONTENT_TARGET).mdb           \
1090         $(EXTRACT_CONTENT_WRAPPER)              \
1091         $(DUMP_INDEX_TARGET)                    \
1092         $(DUMP_INDEX_TARGET).mdb                \
1093         $(DUMP_INDEX_WRAPPER)                   \
1094         $(INDEX_WEB_CONTENT_TARGET)             \
1095         $(INDEX_WEB_CONTENT_TARGET).mdb         \
1096         $(INDEX_WEB_CONTENT_WRAPPER)            \
1097         $(MASTER_DELETE_TARGET)                 \
1098         $(MASTER_DELETE_TARGET).mdb             \
1099         $(MASTER_DELETE_WRAPPER)                \
1100         $(SNIPPET_TEST_TARGET)                  \
1101         $(SNIPPET_TEST_TARGET).mdb              \
1102         $(SNIPPET_TEST_WRAPPER)                 \
1103         $(TERM_STATS_TARGET)                    \
1104         $(TERM_STATS_TARGET).mdb                \
1105         $(TERM_STATS_WRAPPER)                   \
1106         $(NAME_INDEX_TARGET)                    \
1107         $(NAME_INDEX_TARGET).mdb                \
1108         $(NAME_INDEX_WRAPPER)                   \
1109         $(FS_SANITY_CHECK_TARGET)               \
1110         $(FS_SANITY_CHECK_TARGET).mdb           \
1111         $(FS_SANITY_CHECK_WRAPPER)              \
1112         $(MANAGE_INDEX_TARGET)                  \
1113         $(MANAGE_INDEX_TARGET).mdb              \
1114         $(MANAGE_INDEX_WRAPPER)                 \
1115         $(BUILD_INDEX_TARGET)                   \
1116         $(BUILD_INDEX_TARGET).mdb               \
1117         $(BUILD_INDEX_WRAPPER)                  \
1118         $(THUNDERBIRD_TARGET)                   \
1119         $(THUNDERBIRD_TARGET).mdb