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