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