Commit KAddressBook backend.
[beagle.git] / beagled / Makefile.am
blob1bd3064f918934a0398ae9bdf74164628abbb476
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
300         
301 labyrinthqueryable = $(srcdir)/LabyrinthQueryable
302 LABYRINTH_QUERYABLE_CSFILES =                           \
303         $(labyrinthqueryable)/LabyrinthQueryable.cs
304         
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 kopetequeryable = $(srcdir)/KopeteQueryable
328 KOPETE_QUERYABLE_CSFILES =                              \
329         $(kopetequeryable)/KopeteQueryable.cs           \
330         $(kopetequeryable)/KopeteCrawler.cs
332 knotesqueryable = $(srcdir)/KNotesQueryable
333 KNOTES_QUERYABLE_CSFILES =                              \
334         $(knotesqueryable)/KNotesQueryable.cs
336 kabcqueryable = $(srcdir)/KAddressBookQueryable
337 KABC_QUERYABLE_CSFILES =                                \
338         $(kabcqueryable)/KabcQueryable.cs
340 indexingservicequeryable = $(srcdir)/IndexingServiceQueryable
341 INDEXING_SERVICE_QUERYABLE_CSFILES =                    \
342         $(indexingservicequeryable)/IndexingServiceQueryable.cs
344 DAEMON_DLL_CSFILES =                                            \
345         $(LUCENE_CSFILES)                                       \
346         $(KMAIL_QUERYABLE_CSFILES)                              \
347         $(FILE_SYSTEM_QUERYABLE_CSFILES)                        \
348         $(GAIM_LOG_QUERYABLE_CSFILES)                           \
349         $(INDEXING_SERVICE_QUERYABLE_CSFILES)                   \
350         $(TOMBOY_QUERYABLE_CSFILES)                             \
351         $(LABYRINTH_QUERYABLE_CSFILES)                          \
352         $(BLAM_QUERYABLE_CSFILES)                               \
353         $(LIFEREA_QUERYABLE_CSFILES)                            \
354         $(AKREGATOR_QUERYABLE_CSFILES)                          \
355         $(KONQHISTORY_QUERYABLE_CSFILES)                        \
356         $(KNOTES_QUERYABLE_CSFILES)                             \
357         $(KABC_QUERYABLE_CSFILES)                               \
358         $(KOPETE_QUERYABLE_CSFILES)                             \
359         $(srcdir)/FileAttributes.cs                             \
360         $(srcdir)/FileAttributesStore.cs                        \
361         $(srcdir)/FileAttributesStore_ExtendedAttribute.cs      \
362         $(srcdir)/FileAttributesStore_Mixed.cs                  \
363         $(srcdir)/FileAttributesStore_Sqlite.cs                 \
364         $(srcdir)/FilterFactory.cs                              \
365         $(srcdir)/IFileAttributesStore.cs                       \
366         $(srcdir)/IIndexer.cs                                   \
367         $(srcdir)/IndexSynchronization.cs                       \
368         $(srcdir)/IndexerReceipts.cs                            \
369         $(srcdir)/IndexerRequest.cs                             \
370         $(srcdir)/IQueryResult.cs                               \
371         $(srcdir)/IQueryWorker.cs                               \
372         $(srcdir)/IQueryable.cs                                 \
373         $(srcdir)/LuceneBitArray.cs                             \
374         $(srcdir)/LuceneCommon.cs                               \
375         $(srcdir)/LuceneIndexingDriver.cs                       \
376         $(srcdir)/LuceneQueryingDriver.cs                       \
377         $(srcdir)/LuceneFileQueryable.cs                        \
378         $(srcdir)/LuceneQueryable.cs                            \
379         $(srcdir)/NoiseFilter.cs                                \
380         $(srcdir)/PropertyKeywordFu.cs                          \
381         $(srcdir)/QueryDriver.cs                                \
382         $(srcdir)/QueryExecutor.cs                              \
383         $(srcdir)/QueryResult.cs                                \
384         $(srcdir)/QueryStringParser.cs                          \
385         $(srcdir)/Queryable.cs                                  \
386         $(srcdir)/QueryableFlavor.cs                            \
387         $(srcdir)/RemoteControlExecutors.cs                     \
388         $(srcdir)/RemoteIndexerRequest.cs                       \
389         $(srcdir)/RemoteIndexerResponse.cs                      \
390         $(srcdir)/Server.cs                                     \
391         $(srcdir)/Shutdown.cs                                   \
392         $(srcdir)/SnippetExecutor.cs                            \
393         $(srcdir)/SnippetFu.cs                                  \
394         $(srcdir)/SqliteUtils.cs                                \
395         $(srcdir)/StaticQueryable.cs                            \
396         $(srcdir)/TextCache.cs
398 DAEMON_DLL_LOCAL_ASSEMBLIES =           \
399         ../Util/Util.dll                \
400         ../BeagleClient/Beagle.dll      \
401         ./$(PLUGIN_TARGET)
403 DAEMON_DLL_ASSEMBLIES =                         \
404         $(BEAGLED_LIBS)                         \
405         $(DAEMON_DLL_LOCAL_ASSEMBLIES:%=-r:%)   \
406         $(SHARPZIPLIB_LIBS)             \
407         -r:Mono.Data.SqliteClient               \
408         -r:Mono.Posix                           \
409         -r:System.Runtime.Remoting              \
410         -r:System.Web
412 if USE_LOCAL_SQLITE
413 DAEMON_DLL_CSFILES += $(SQLITE_CSFILES)
414 DAEMON_DLL_ASSEMBLIES += -r:System.Data
415 else
416 DAEMON_DLL_ASSEMBLIES += -r:Mono.Data.SqliteClient
417 endif
419 if ENABLE_GOOGLEDRIVER
420 DAEMON_DLL_CSFILES +=                  \
421        $(srcdir)/GoogleDriver.cs
422 endif
424 $(DAEMON_DLL_TARGET): $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES)
425         $(CSC) -out:$@ $(DAEMON_DLL_CSFLAGS) $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_ASSEMBLIES)
427 ############################################################
430 ### Pluggable backend support
433 BACKEND_CSFLAGS = -target:library
434 BACKEND_LOCAL_ASSEMBLIES =                      \
435         ../Util/Util.dll                        \
436         ../BeagleClient/Beagle.dll              \
437         ./$(DAEMON_DLL_TARGET)
439 BACKEND_ASSEMBLIES =                            \
440         $(SHARPZIPLIB_LIBS)                     \
441         $(BACKEND_LOCAL_ASSEMBLIES:%=-r:%)      \
442         -r:Mono.Posix
445 ### Evolution backend
448 edsqueryable = $(srcdir)/EvolutionDataServerQueryable
449 EDS_QUERYABLE_CSFILES =                                 \
450         $(edsqueryable)/BookContainer.cs                \
451         $(edsqueryable)/CalContainer.cs                 \
452         $(edsqueryable)/Container.cs                    \
453         $(edsqueryable)/EvolutionDataServerQueryable.cs \
454         $(edsqueryable)/SourcesHandler.cs
456 evomailqueryable = $(srcdir)/EvolutionMailDriver
457 EVO_MAIL_QUERYABLE_CSFILES =                                    \
458         $(evomailqueryable)/EvolutionMailDriver.cs              \
459         $(evomailqueryable)/EvolutionMailIndexableGenerator.cs  \
460         $(evomailqueryable)/GConfThreadHelper.cs                \
461         $(evomailqueryable)/MailCrawler.cs
463 EVO_DLL_TARGET = EvolutionBackends.dll
464 EVO_DLL_CSFLAGS = $(BACKEND_CSFLAGS)
465 EVO_DLL_CSFILES = $(EDS_QUERYABLE_CSFILES) $(EVO_MAIL_QUERYABLE_CSFILES)
466 EVO_DLL_ASSEMBLIES = $(BACKEND_ASSEMBLIES) $(EVO_LIBS)
468 $(EVO_DLL_TARGET): $(EVO_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES) $(DAEMON_DLL_TARGET)
469         $(CSC) -out:$@ $(EVO_DLL_CSFLAGS) $(EVO_DLL_CSFILES) -r:$(DAEMON_DLL_TARGET) $(EVO_DLL_ASSEMBLIES)
471 ############################################################
473 DAEMON_WRAPPER = beagled
474 DAEMON_WRAPPER_IN = beagled.in
475 DAEMON_TARGET = BeagleDaemon.exe
477 $(DAEMON_WRAPPER): $(srcdir)/$(DAEMON_WRAPPER_IN)
478         $(WRAPPER_SED) -e "s|\@target\@|$(DAEMON_TARGET)|g" < $(srcdir)/$(DAEMON_WRAPPER_IN) > $@
479         chmod +x $(DAEMON_WRAPPER)
481 DAEMON_CSFLAGS =                                \
482         -target:exe                             \
483         $(BEAGLE_DEFINES)
485 DAEMON_CSFILES =                                \
486         $(srcdir)/BeagleDaemon.cs               \
487         $(srcdir)/RemoteIndexer.cs
489 DAEMON_LOCAL_ASSEMBLIES =                       \
490         ../Util/Util.dll                        \
491         ../BeagleClient/Beagle.dll              \
492         ./$(PLUGIN_TARGET)                      \
493         ./$(DAEMON_DLL_TARGET)
495 DAEMON_ASSEMBLIES =                             \
496         $(BEAGLED_LIBS)                         \
497         $(SHARPZIPLIB_LIBS)                     \
498         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
499         -r:Mono.Posix
501 $(DAEMON_TARGET): $(DAEMON_CSFILES) $(DAEMON_LOCAL_ASSEMBLIES)
502         $(CSC) -out:$@ $(DAEMON_CSFLAGS) $(DAEMON_CSFILES) $(DAEMON_ASSEMBLIES)
504 if ENABLE_THUNDERBIRD   
505 THUNDERBIRD_DIR = $(srcdir)/ThunderbirdQueryable
507 THUNDERBIRD_TARGET = ThunderbirdBackends.dll
509 THUNDERBIRD_CSFLAGS = -target:library
512 THUNDERBIRD_CSFILES =                                           \
513         $(THUNDERBIRD_DIR)/LuceneAccess.cs                      \
514         $(THUNDERBIRD_DIR)/ThunderbirdIndexer.cs                \
515         $(THUNDERBIRD_DIR)/ThunderbirdIndexableGenerator.cs     \
516         $(THUNDERBIRD_DIR)/ThunderbirdQueryable.cs              \
517         $(THUNDERBIRD_DIR)/ThunderbirdInotify.cs                \
518         $(THUNDERBIRD_DIR)/Mail.cs                              \
519         $(THUNDERBIRD_DIR)/Contact.cs                           \
520         $(THUNDERBIRD_DIR)/Rss.cs                               \
521         $(THUNDERBIRD_DIR)/Nntp.cs                              \
522         $(THUNDERBIRD_DIR)/MoveMail.cs
524 THUNDERBIRD_LOCAL_ASSEMBLIES =          \
525         ../Util/Util.dll                \
526         ../BeagleClient/Beagle.dll      \
527         ./BeagleDaemonLib.dll
529 THUNDERBIRD_ASSEMBLIES =                                \
530         -r:Mono.Posix                           \
531         $(BEAGLED_LIBS)                         \
532         $(THUNDERBIRD_LOCAL_ASSEMBLIES:%=-r:%)
535 $(THUNDERBIRD_TARGET): $(THUNDERBIRD_CSFILES) $(THUNDERBIRD_LOCAL_ASSEMBLIES)
536         $(CSC) -out:$@ $(THUNDERBIRD_CSFLAGS) $(THUNDERBIRD_CSFILES) $(THUNDERBIRD_ASSEMBLIES)
537 endif
539 ############################################################
540 ############################################################
541 ############################################################
543 # This next section is a very good example of why we need real mono support in
544 # automake.  This is a massive wart on our development platform.
546 INDEX_HELPER_WRAPPER = beagled-index-helper
547 INDEX_HELPER_WRAPPER_IN = $(INDEX_HELPER_WRAPPER).in
548 INDEX_HELPER_TARGET = IndexHelper.exe
550 $(INDEX_HELPER_WRAPPER): $(srcdir)/$(INDEX_HELPER_WRAPPER_IN)
551         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_HELPER_TARGET)|g" < $(srcdir)/$(INDEX_HELPER_WRAPPER_IN) > $@
552         chmod +x $(INDEX_HELPER_WRAPPER)
554 INDEX_HELPER_CSFLAGS = -target:exe $(BEAGLE_DEFINES)
556 indexhelperdir = $(srcdir)/IndexHelper
558 INDEX_HELPER_CSFILES =  \
559         $(indexhelperdir)/IndexHelper.cs                \
560         $(indexhelperdir)/RemoteIndexerExecutor.cs
563 INDEX_HELPER_LOCAL_ASSEMBLIES =         \
564         ../Util/Util.dll                \
565         ../BeagleClient/Beagle.dll      \
566         ./$(DAEMON_DLL_TARGET)
568 INDEX_HELPER_ASSEMBLIES = \
569         $(BEAGLED_LIBS)                         \
570         $(SHARPZIPLIB_LIBS)                     \
571         $(INDEX_HELPER_LOCAL_ASSEMBLIES:%=-r:%) \
572         -r:Mono.Posix                           \
573         -r:System.Runtime.Remoting
575 $(INDEX_HELPER_TARGET): $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_LOCAL_ASSEMBLIES)
576         $(CSC) -out:$@ $(INDEX_HELPER_CSFLAGS) $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_ASSEMBLIES)
578 ############################################################
580 EXTRACT_CONTENT_WRAPPER = beagle-extract-content
581 EXTRACT_CONTENT_TARGET = ExtractContent.exe
583 $(EXTRACT_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
584         $(WRAPPER_SED) -e "s|\@target\@|$(EXTRACT_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
585         chmod +x $(EXTRACT_CONTENT_WRAPPER)
588 EXTRACT_CONTENT_CSFLAGS = \
589         -target:exe
591 EXTRACT_CONTENT_CSFILES = \
592         $(srcdir)/ExtractContent.cs
594 EXTRACT_CONTENT_LOCAL_ASSEMBLIES = \
595         ../Util/Util.dll                        \
596         ../BeagleClient/Beagle.dll              \
597         ./$(PLUGIN_TARGET)                      \
598         ./$(DAEMON_DLL_TARGET)
600 EXTRACT_CONTENT_ASSEMBLIES = \
601         $(BEAGLED_LIBS)                         \
602         $(SHARPZIPLIB_LIBS)                     \
603         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
604         -r:Mono.Posix                           \
605         -r:System.Runtime.Remoting
607 $(EXTRACT_CONTENT_TARGET): $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_LOCAL_ASSEMBLIES)
608         $(CSC) -out:$@ $(EXTRACT_CONTENT_CSFLAGS) $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_ASSEMBLIES)
610 ############################################################
612 DUMP_INDEX_WRAPPER = beagle-dump-index
613 DUMP_INDEX_TARGET = DumpIndex.exe
615 $(DUMP_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
616         $(WRAPPER_SED) -e "s|\@target\@|$(DUMP_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
617         chmod +x $(DUMP_INDEX_WRAPPER)
619 DUMP_INDEX_CSFLAGS = \
620         -target:exe
622 DUMP_INDEX_CSFILES = \
623         $(srcdir)/DumpIndex.cs
625 DUMP_INDEX_LOCAL_ASSEMBLIES = \
626         ../Util/Util.dll                        \
627         ../BeagleClient/Beagle.dll              \
628         ./$(PLUGIN_TARGET)                      \
629         ./$(DAEMON_DLL_TARGET)
631 DUMP_INDEX_ASSEMBLIES = \
632         $(BEAGLED_LIBS)                         \
633         $(SHARPZIPLIB_LIBS)                     \
634         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
635         -r:Mono.Posix                           \
636         -r:System.Runtime.Remoting
638 $(DUMP_INDEX_TARGET): $(DUMP_INDEX_CSFILES) $(DUMP_INDEX_LOCAL_ASSEMBLIES)
639         $(CSC) -out:$@ $(DUMP_INDEX_CSFLAGS) $(DUMP_INDEX_CSFILES) $(DUMP_INDEX_ASSEMBLIES)
641 ############################################################
643 INDEX_WEB_CONTENT_WRAPPER = beagle-index-url
644 INDEX_WEB_CONTENT_TARGET = IndexWebContent.exe
646 $(INDEX_WEB_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
647         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_WEB_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
648         chmod +x $(INDEX_WEB_CONTENT_WRAPPER)
651 INDEX_WEB_CONTENT_CSFLAGS = \
652         -target:exe
654 INDEX_WEB_CONTENT_CSFILES = \
655         $(srcdir)/IndexWebContent.cs
657 INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES = \
658         ../Util/Util.dll                        \
659         ../BeagleClient/Beagle.dll              \
660         ./$(PLUGIN_TARGET)                      \
661         ./$(DAEMON_DLL_TARGET)
663 INDEX_WEB_CONTENT_ASSEMBLIES =  \
664         $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES:%=-r:%)
666 $(INDEX_WEB_CONTENT_TARGET): $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES)
667         $(CSC) -out:$@ $(INDEX_WEB_CONTENT_CSFLAGS) $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_ASSEMBLIES)
669 ############################################################
671 MASTER_DELETE_WRAPPER = beagle-master-delete-button
672 MASTER_DELETE_TARGET = MasterDelete.exe
674 $(MASTER_DELETE_WRAPPER): $(srcdir)/$(WRAPPER_IN)
675         $(WRAPPER_SED) -e "s|\@target\@|$(MASTER_DELETE_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
676         chmod +x $(MASTER_DELETE_WRAPPER)
679 MASTER_DELETE_CSFLAGS = \
680         -target:exe
682 MASTER_DELETE_CSFILES = \
683         $(srcdir)/MasterDelete.cs
685 MASTER_DELETE_LOCAL_ASSEMBLIES = \
686         ../Util/Util.dll                        \
687         ../BeagleClient/Beagle.dll              \
688         ./$(PLUGIN_TARGET)                      \
689         ./$(DAEMON_DLL_TARGET)
691 MASTER_DELETE_ASSEMBLIES = \
692         $(BEAGLED_LIBS)                         \
693         $(SHARPZIPLIB_LIBS)                     \
694         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
695         -r:Mono.Posix                           \
696         -r:System.Runtime.Remoting
698 $(MASTER_DELETE_TARGET): $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_LOCAL_ASSEMBLIES)
699         $(CSC) -out:$@ $(MASTER_DELETE_CSFLAGS) $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_ASSEMBLIES)
701 ############################################################
703 SNIPPET_TEST_WRAPPER = beagle-snippet-test
704 SNIPPET_TEST_TARGET = SnippetTest.exe
706 $(SNIPPET_TEST_WRAPPER): $(srcdir)/$(WRAPPER_IN)
707         $(WRAPPER_SED) -e "s|\@target\@|$(SNIPPET_TEST_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
708         chmod +x $(SNIPPET_TEST_WRAPPER)
710 SNIPPET_TEST_CSFLAGS = \
711         -target:exe
713 SNIPPET_TEST_CSFILES = \
714         $(srcdir)/SnippetTest.cs
716 SNIPPET_TEST_LOCAL_ASSEMBLIES = \
717         ../Util/Util.dll                        \
718         ../BeagleClient/Beagle.dll              \
719         ./$(PLUGIN_TARGET)                      \
720         ./$(DAEMON_DLL_TARGET)
722 SNIPPET_TEST_ASSEMBLIES = \
723         $(BEAGLED_LIBS)                         \
724         $(SHARPZIPLIB_LIBS)                     \
725         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
726         -r:Mono.Posix                           \
727         -r:System.Runtime.Remoting
729 $(SNIPPET_TEST_TARGET): $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_LOCAL_ASSEMBLIES)
730         $(CSC) -out:$@ $(SNIPPET_TEST_CSFLAGS) $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_ASSEMBLIES)
732 ############################################################
734 TERM_STATS_WRAPPER = beagle-term-stats
735 TERM_STATS_TARGET = TermStatsTool.exe
737 $(TERM_STATS_WRAPPER): $(srcdir)/$(WRAPPER_IN)
738         $(WRAPPER_SED) -e "s|\@target\@|$(TERM_STATS_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
739         chmod +x $(TERM_STATS_WRAPPER)
741 TERM_STATS_CSFLAGS = \
742         -target:exe
744 TERM_STATS_CSFILES = \
745         $(srcdir)/TermStatsTool.cs
747 TERM_STATS_LOCAL_ASSEMBLIES =   \
748         ../Util/Util.dll                        \
749         ../BeagleClient/Beagle.dll              \
750         ./$(PLUGIN_TARGET)                      \
751         ./$(DAEMON_DLL_TARGET)
753 TERM_STATS_ASSEMBLIES = \
754         $(BEAGLED_LIBS)                         \
755         $(SHARPZIPLIB_LIBS)                     \
756         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
757         -r:Mono.Posix                           \
758         -r:System.Runtime.Remoting
760 $(TERM_STATS_TARGET): $(TERM_STATS_CSFILES) $(TERM_STATS_LOCAL_ASSEMBLIES)
761         $(CSC) -out:$@ $(TERM_STATS_CSFLAGS) $(TERM_STATS_CSFILES) $(TERM_STATS_ASSEMBLIES)
763 ############################################################
765 NAME_INDEX_WRAPPER = beagle-name-index
766 NAME_INDEX_TARGET = NameIndexTool.exe
768 $(NAME_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
769         $(WRAPPER_SED) -e "s|\@target\@|$(NAME_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
770         chmod +x $(NAME_INDEX_WRAPPER)
772 NAME_INDEX_CSFLAGS = \
773         -target:exe
775 NAME_INDEX_CSFILES = \
776         $(srcdir)/NameIndexTool.cs
778 NAME_INDEX_LOCAL_ASSEMBLIES =   \
779         ../Util/Util.dll                        \
780         ../BeagleClient/Beagle.dll              \
781         ./$(PLUGIN_TARGET)                      \
782         ./$(DAEMON_DLL_TARGET)
784 NAME_INDEX_ASSEMBLIES = \
785         $(BEAGLED_LIBS)                         \
786         $(SHARPZIPLIB_LIBS)                     \
787         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
788         -r:Mono.Posix                           \
789         -r:System.Runtime.Remoting
791 $(NAME_INDEX_TARGET): $(NAME_INDEX_CSFILES) $(NAME_INDEX_LOCAL_ASSEMBLIES)
792         $(CSC) -out:$@ $(NAME_INDEX_CSFLAGS) $(NAME_INDEX_CSFILES) $(NAME_INDEX_ASSEMBLIES)
794 ############################################################
796 FS_SANITY_CHECK_WRAPPER = beagle-file-system-sanity-check
797 FS_SANITY_CHECK_TARGET = SanityCheckTool.exe
799 $(FS_SANITY_CHECK_WRAPPER): $(srcdir)/$(WRAPPER_IN)
800         $(WRAPPER_SED) -e "s|\@target\@|$(FS_SANITY_CHECK_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
801         chmod +x $(FS_SANITY_CHECK_WRAPPER)
803 FS_SANITY_CHECK_CSFLAGS = \
804         -target:exe
806 FS_SANITY_CHECK_CSFILES = \
807         $(srcdir)/SanityCheckTool.cs
809 FS_SANITY_CHECK_LOCAL_ASSEMBLIES = \
810         ../Util/Util.dll                        \
811         ../BeagleClient/Beagle.dll              \
812         ./$(PLUGIN_TARGET)                      \
813         ./$(DAEMON_DLL_TARGET)
815 FS_SANITY_CHECK_ASSEMBLIES = \
816         $(BEAGLED_LIBS)                         \
817         $(SHARPZIPLIB_LIBS)                     \
818         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
819         -r:Mono.Posix                           \
820         -r:System.Runtime.Remoting
822 $(FS_SANITY_CHECK_TARGET): $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_LOCAL_ASSEMBLIES)
823         $(CSC) -out:$@ $(FS_SANITY_CHECK_CSFLAGS) $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_ASSEMBLIES)
825 ############################################################
827 BUILD_INDEX_WRAPPER = beagle-build-index
828 BUILD_INDEX_TARGET = BuildIndex.exe
830 $(BUILD_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
831         $(WRAPPER_SED) -e "s|\@target\@|$(BUILD_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
832         chmod +x $(BUILD_INDEX_WRAPPER)
834 BUILD_INDEX_CSFLAGS = \
835         -target:exe
837 BUILD_INDEX_CSFILES = \
838         $(srcdir)/BuildIndex.cs
840 BUILD_INDEX_LOCAL_ASSEMBLIES = \
841         ../Util/Util.dll                        \
842         ../BeagleClient/Beagle.dll              \
843         ./$(PLUGIN_TARGET)                      \
844         ./$(DAEMON_DLL_TARGET)
846 BUILD_INDEX_ASSEMBLIES = \
847         $(BEAGLED_LIBS)                         \
848         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
849         -r:Mono.Posix
851 $(BUILD_INDEX_TARGET): $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_LOCAL_ASSEMBLIES)
852         $(CSC) -out:$@ $(BUILD_INDEX_CSFLAGS) $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_ASSEMBLIES)
854 ############################################################
856 MANAGE_INDEX_WRAPPER = beagle-manage-index
857 MANAGE_INDEX_TARGET = ManageIndex.exe
859 $(MANAGE_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
860         $(WRAPPER_SED) -e "s|\@target\@|$(MANAGE_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
861         chmod +x $(MANAGE_INDEX_WRAPPER)
863 MANAGE_INDEX_CSFLAGS = \
864         -target:exe
866 MANAGE_INDEX_CSFILES = \
867         $(srcdir)/ManageIndex.cs
869 MANAGE_INDEX_LOCAL_ASSEMBLIES = \
870         ../Util/Util.dll                        \
871         ../BeagleClient/Beagle.dll              \
872         ./$(PLUGIN_TARGET)                      \
873         ./$(DAEMON_DLL_TARGET)
875 MANAGE_INDEX_ASSEMBLIES = \
876         $(BEAGLED_LIBS)                         \
877         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
878         -r:Mono.Posix
880 $(MANAGE_INDEX_TARGET): $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_LOCAL_ASSEMBLIES)
881         $(CSC) -out:$@ $(MANAGE_INDEX_CSFLAGS) $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_ASSEMBLIES)
883 ############################################################
885 CRAWL_SYSTEM_IN = beagle-crawl-system.in
886 CRAWL_SYSTEM = beagle-crawl-system
888 $(CRAWL_SYSTEM): $(srcdir)/$(CRAWL_SYSTEM_IN)
889         $(WRAPPER_SEB) -e "s|\@target\@|$(CRAWL_SYSTEM)|g" < $(srcdir)/$(CRAWL_SYSTEM_IN) > $@
890         chmod +x $(CRAWL_SYSTEM)
892 # OK, now back to our regularly scheduled program.  But notice all of the
893 # EXTRA_DIST and CLEANFILES stuff at the bottom of the file.  Yuck.
895 ############################################################
896 ############################################################
897 ############################################################
899 #       $(MASTER_DELETE_TARGET)
901 #       $(FS_SANITY_CHECK_TARGET)
903 ALL_TARGETS =                           \
904         $(PLUGIN_TARGET)                \
905         $(DAEMON_DLL_TARGET)            \
906         $(DAEMON_TARGET)                \
907         $(DAEMON_WRAPPER)               \
908         $(INDEX_HELPER_TARGET)          \
909         $(INDEX_HELPER_WRAPPER)         \
910         $(INDEX_WEB_CONTENT_TARGET)     \
911         $(INDEX_WEB_CONTENT_WRAPPER)    \
912         $(EXTRACT_CONTENT_TARGET)       \
913         $(EXTRACT_CONTENT_WRAPPER)      \
914         $(DUMP_INDEX_TARGET)            \
915         $(SNIPPET_TEST_TARGET)          \
916         $(TERM_STATS_TARGET)            \
917         $(NAME_INDEX_TARGET)            \
918         $(MANAGE_INDEX_TARGET)          \
919         $(MANAGE_INDEX_WRAPPER)         \
920         $(BUILD_INDEX_TARGET)           \
921         $(BUILD_INDEX_WRAPPER)
923 if ENABLE_THUNDERBIRD
924 ALL_TARGETS += $(THUNDERBIRD_TARGET)
925 endif
927 if ENABLE_EVOLUTION
928 ALL_TARGETS +=                          \
929         $(EVO_DLL_TARGET)
930 endif
932 man_MANS =                              \
933         beagled.1                       \
934         beagle-build-index.8            \
935         beagle-manage-index.8
937 all: $(ALL_TARGETS)
939 install-data-local: $(ALL_TARGETS)
940         $(mkinstalldirs) $(DESTDIR)$(bindir)
941         $(mkinstalldirs) $(DESTDIR)$(sbindir)
942         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
943         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
944         $(mkinstalldirs) $(DESTDIR)$(BACKENDDIR)
945 if ENABLE_EVOLUTION
946         $(INSTALL_DATA) $(EVO_DLL_TARGET) $(EVO_DLL_TARGET).mdb $(DESTDIR)$(BACKENDDIR)
947 endif
948         @for i in $(BIN_WRAPPERS); do                                           \
949                 sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;          \
950                 echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i";       \
951                 $(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(bindir)/$$i || exit 1;    \
952                 rm -f $$i.tmp;                                                  \
953         done
955         @for i in $(SBIN_WRAPPERS); do                                          \
956                 sed -e "s|\#installed=1|installed=1|" < $$i > $$i.tmp;          \
957                 echo "$(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(sbindir)/$$i";      \
958                 $(INSTALL_SCRIPT) $$i.tmp $(DESTDIR)$(sbindir)/$$i || exit 1;   \
959                 rm -f $$i.tmp;                                                  \
960         done
962         @sed -e "s|\#installed=1|installed=1|" < $(INDEX_HELPER_WRAPPER) > $(INDEX_HELPER_WRAPPER).tmp
963         $(INSTALL_SCRIPT) $(INDEX_HELPER_WRAPPER).tmp $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
964         @rm -f $(INDEX_HELPER_WRAPPER).tmp
966         $(INSTALL_DATA) $(PLUGIN_TARGET)                 $(DESTDIR)$(pkglibdir)
967         $(INSTALL_DATA) $(PLUGIN_TARGET).mdb             $(DESTDIR)$(pkglibdir)
968         $(INSTALL_DATA) $(DAEMON_DLL_TARGET)             $(DESTDIR)$(pkglibdir)
969         $(INSTALL_DATA) $(DAEMON_DLL_TARGET).mdb         $(DESTDIR)$(pkglibdir)
970         $(INSTALL_DATA) $(DAEMON_TARGET)                 $(DESTDIR)$(pkglibdir)
971         $(INSTALL_DATA) $(DAEMON_TARGET).mdb             $(DESTDIR)$(pkglibdir)
972         $(INSTALL_DATA) $(EXTRACT_CONTENT_TARGET)        $(DESTDIR)$(pkglibdir)
973         $(INSTALL_DATA) $(EXTRACT_CONTENT_TARGET).mdb    $(DESTDIR)$(pkglibdir)
974         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET)      $(DESTDIR)$(pkglibdir)
975         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET).mdb  $(DESTDIR)$(pkglibdir)
976         $(INSTALL_DATA) $(INDEX_HELPER_TARGET)           $(DESTDIR)$(pkglibdir)
977         $(INSTALL_DATA) $(INDEX_HELPER_TARGET).mdb       $(DESTDIR)$(pkglibdir)
978         $(INSTALL_DATA) $(BUILD_INDEX_TARGET)            $(DESTDIR)$(pkglibdir)
979         $(INSTALL_DATA) $(BUILD_INDEX_TARGET).mdb        $(DESTDIR)$(pkglibdir)
980         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET)           $(DESTDIR)$(pkglibdir)
981         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET).mdb       $(DESTDIR)$(pkglibdir)
982 if ENABLE_THUNDERBIRD
983         $(INSTALL_DATA) $(THUNDERBIRD_TARGET)                 $(DESTDIR)$(BACKENDDIR)
984         $(INSTALL_DATA) $(THUNDERBIRD_TARGET).mdb             $(DESTDIR)$(BACKENDDIR)
985 endif
987 uninstall-local:
988 if ENABLE_THUNDERBIRD
989         rm -f $(DESTDIR)$(BACKENDDIR)/$(THUNDERBIRD_TARGET)
990         rm -f $(DESTDIR)$(BACKENDDIR)/$(THUNDERBIRD_TARGET).mdb
991 endif
992 if ENABLE_EVOLUTION
993         rm -f $(DESTDIR)$(BACKENDDIR)/$(EVO_DLL_TARGET)
994         rm -f $(DESTDIR)$(BACKENDDIR)/$(EVO_DLL_TARGET).mdb
995 endif
997         @for i in $(BIN_WRAPPERS); do                           \
998                 echo "rm -f $(DESTDIR)$(bindir)/$$i";           \
999                 rm -f $(DESTDIR)$(bindir)/$$i || exit 1;        \
1000         done
1002         @for i in $(SBIN_WRAPPERS); do                          \
1003                 echo "rm -f $(DESTDIR)$(sbindir)/$$i";          \
1004                 rm -f $(DESTDIR)$(sbindir)/$$i || exit 1;       \
1005         done
1007         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET)
1008         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET).mdb
1009         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET)
1010         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET).mdb
1011         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET)
1012         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET).mdb
1013         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET)
1014         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET).mdb
1015         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
1016         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER).mdb
1017         rm -f $(DESTDIR)$(pkglibdir)/$(EXTRACT_CONTENT_TARGET)
1018         rm -f $(DESTDIR)$(pkglibdir)/$(EXTRACT_CONTENT_TARGET).mdb
1019         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET)
1020         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET).mdb
1021         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET)
1022         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET).mdb
1023         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET)
1024         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET).mdb
1026 BIN_WRAPPERS = \
1027         $(DAEMON_WRAPPER)               \
1028         $(EXTRACT_CONTENT_WRAPPER)      \
1029         $(INDEX_WEB_CONTENT_WRAPPER)
1031 SBIN_WRAPPERS = \
1032         $(BUILD_INDEX_WRAPPER)          \
1033         $(MANAGE_INDEX_WRAPPER)
1035 #       $(MASTER_DELETE_WRAPPER)
1036 #       $(FS_SANITY_CHECK_WRAPPER)
1038 noinst_SCRIPTS= \
1039         $(DUMP_INDEX_WRAPPER)           \
1040         $(SNIPPET_TEST_WRAPPER)         \
1041         $(TERM_STATS_WRAPPER)           \
1042         $(NAME_INDEX_WRAPPER)           
1044 EXTRA_DIST = \
1045         $(WRAPPER_IN)                           \
1046         $(DAEMON_WRAPPER_IN)                    \
1047         $(INDEX_HELPER_WRAPPER_IN)              \
1048         $(man_MANS)                             \
1049         $(PLUGIN_CSFILES)                       \
1050         $(DAEMON_DLL_CSFILES)                   \
1051         $(DAEMON_CSFILES)                       \
1052         $(EVO_DLL_CSFILES)                      \
1053         $(THUNDERBIRD_CSFILES)                  \
1054         $(EXTRACT_CONTENT_CSFILES)              \
1055         $(DUMP_INDEX_CSFILES)                   \
1056         $(INDEX_WEB_CONTENT_CSFILES)            \
1057         $(SNIPPET_TEST_CSFILES)                 \
1058         $(INDEX_HELPER_CSFILES)                 \
1059         $(MASTER_DELETE_CSFILES)                \
1060         $(TERM_STATS_CSFILES)                   \
1061         $(NAME_INDEX_CSFILES)                   \
1062         $(FS_SANITY_CHECK_CSFILES)              \
1063         $(MANAGE_INDEX_CSFILES)                 \
1064         $(BUILD_INDEX_CSFILES)
1066 CLEANFILES = \
1067         $(PLUGIN_TARGET)                        \
1068         $(PLUGIN_TARGET).mdb                    \
1069         $(DAEMON_DLL_TARGET)                    \
1070         $(DAEMON_DLL_TARGET).mdb                \
1071         $(DAEMON_TARGET)                        \
1072         $(DAEMON_TARGET).mdb                    \
1073         $(DAEMON_WRAPPER)                       \
1074         $(EVO_DLL_TARGET)                       \
1075         $(EVO_DLL_TARGET).mdb                   \
1076         $(INDEX_HELPER_TARGET)                  \
1077         $(INDEX_HELPER_TARGET).mdb              \
1078         $(INDEX_HELPER_WRAPPER)                 \
1079         $(EXTRACT_CONTENT_TARGET)               \
1080         $(EXTRACT_CONTENT_TARGET).mdb           \
1081         $(EXTRACT_CONTENT_WRAPPER)              \
1082         $(DUMP_INDEX_TARGET)                    \
1083         $(DUMP_INDEX_TARGET).mdb                \
1084         $(DUMP_INDEX_WRAPPER)                   \
1085         $(INDEX_WEB_CONTENT_TARGET)             \
1086         $(INDEX_WEB_CONTENT_TARGET).mdb         \
1087         $(INDEX_WEB_CONTENT_WRAPPER)            \
1088         $(MASTER_DELETE_TARGET)                 \
1089         $(MASTER_DELETE_TARGET).mdb             \
1090         $(MASTER_DELETE_WRAPPER)                \
1091         $(SNIPPET_TEST_TARGET)                  \
1092         $(SNIPPET_TEST_TARGET).mdb              \
1093         $(SNIPPET_TEST_WRAPPER)                 \
1094         $(TERM_STATS_TARGET)                    \
1095         $(TERM_STATS_TARGET).mdb                \
1096         $(TERM_STATS_WRAPPER)                   \
1097         $(NAME_INDEX_TARGET)                    \
1098         $(NAME_INDEX_TARGET).mdb                \
1099         $(NAME_INDEX_WRAPPER)                   \
1100         $(FS_SANITY_CHECK_TARGET)               \
1101         $(FS_SANITY_CHECK_TARGET).mdb           \
1102         $(FS_SANITY_CHECK_WRAPPER)              \
1103         $(MANAGE_INDEX_TARGET)                  \
1104         $(MANAGE_INDEX_TARGET).mdb              \
1105         $(MANAGE_INDEX_WRAPPER)                 \
1106         $(BUILD_INDEX_TARGET)                   \
1107         $(BUILD_INDEX_TARGET).mdb               \
1108         $(BUILD_INDEX_WRAPPER)                  \
1109         $(THUNDERBIRD_TARGET)                   \
1110         $(THUNDERBIRD_TARGET).mdb