Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / beagled / Makefile.am
blob17a929dd57464586a1f654088a30a83d416d8b0c
2 # Warnings we don't want to see
3 # 0067 = event defined but not used
4 # 0618 = Mono.Posix.Syscall is obsolete
5 # 0169 = The private method/field 'foo' is never used
6 # 0164 = This label has not been referenced
8 CSC = mcs -debug -nowarn:0067,0618,0619,0169,0164
10 PLUGIN_TARGET = BeagleDaemonPlugins.dll
12 PLUGIN_CSFLAGS = -target:library
14 PLUGIN_CSFILES =                        \
15         $(srcdir)/Flavor.cs             \
16         $(srcdir)/Filter.cs
18 PLUGIN_LOCAL_ASSEMBLIES =               \
19         ../Util/Util.dll                \
20         ../BeagleClient/Beagle.dll
22 PLUGIN_ASSEMBLIES =                             \
23         -r:Mono.Posix                           \
24         $(BEAGLED_LIBS)                         \
25         $(PLUGIN_LOCAL_ASSEMBLIES:%=-r:%)
28 $(PLUGIN_TARGET): $(PLUGIN_CSFILES) $(PLUGIN_LOCAL_ASSEMBLIES)
29         $(CSC) -out:$@ $(PLUGIN_CSFLAGS) $(PLUGIN_CSFILES) $(PLUGIN_ASSEMBLIES)
31 ############################################################
33 WRAPPER_IN = wrapper.in
34 WRAPPER_SED = sed                                       \
35         -e "s|\@prefix\@|$(prefix)|g"                   \
36         -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
37         -e "s|\@libdir\@|$(libdir)|g"                   \
38         -e "s|\@gacprefix\@|$(GAC_PREFIX)|g"            \
39         -e "s|\@bash\@|$(BASH)|"
41 ############################################################
43 lucenedir = $(srcdir)/Lucene.Net
45 LUCENE_1_4_CSFILES =                                                    \
46         $(lucenedir)/AssemblyInfo.cs                                    \
47         $(lucenedir)/SupportClass.cs                                    \
48         $(lucenedir)/Store/Directory.cs                                 \
49         $(lucenedir)/Store/FSDirectory.cs                               \
50         $(lucenedir)/Store/InputStream.cs                               \
51         $(lucenedir)/Store/Lock.cs                                      \
52         $(lucenedir)/Store/OutputStream.cs                              \
53         $(lucenedir)/Store/RAMDirectory.cs                              \
54         $(lucenedir)/Store/RAMFile.cs                                   \
55         $(lucenedir)/Store/RAMInputStream.cs                            \
56         $(lucenedir)/Store/RAMOutputStream.cs                           \
57         $(lucenedir)/Util/BitVector.cs                                  \
58         $(lucenedir)/Util/Constants.cs                                  \
59         $(lucenedir)/Util/PriorityQueue.cs                              \
60         $(lucenedir)/Util/StringHelper.cs                               \
61         $(lucenedir)/Index/CompoundFileReader.cs                        \
62         $(lucenedir)/Index/CompoundFileWriter.cs                        \
63         $(lucenedir)/Index/DocumentWriter.cs                            \
64         $(lucenedir)/Index/FieldInfo.cs                                 \
65         $(lucenedir)/Index/FieldInfos.cs                                \
66         $(lucenedir)/Index/FieldsReader.cs                              \
67         $(lucenedir)/Index/FieldsWriter.cs                              \
68         $(lucenedir)/Index/FilterIndexReader.cs                         \
69         $(lucenedir)/Index/IndexReader.cs                               \
70         $(lucenedir)/Index/IndexWriter.cs                               \
71         $(lucenedir)/Index/MultipleTermPositions.cs                     \
72         $(lucenedir)/Index/MultiReader.cs                               \
73         $(lucenedir)/Index/SegmentInfo.cs                               \
74         $(lucenedir)/Index/SegmentInfos.cs                              \
75         $(lucenedir)/Index/SegmentMergeInfo.cs                          \
76         $(lucenedir)/Index/SegmentMergeQueue.cs                         \
77         $(lucenedir)/Index/SegmentMerger.cs                             \
78         $(lucenedir)/Index/SegmentReader.cs                             \
79         $(lucenedir)/Index/SegmentTermDocs.cs                           \
80         $(lucenedir)/Index/SegmentTermEnum.cs                           \
81         $(lucenedir)/Index/SegmentTermPositions.cs                      \
82         $(lucenedir)/Index/SegmentTermVector.cs                         \
83         $(lucenedir)/Index/Term.cs                                      \
84         $(lucenedir)/Index/TermBuffer.cs                                \
85         $(lucenedir)/Index/TermDocs.cs                                  \
86         $(lucenedir)/Index/TermEnum.cs                                  \
87         $(lucenedir)/Index/TermFreqVector.cs                            \
88         $(lucenedir)/Index/TermInfo.cs                                  \
89         $(lucenedir)/Index/TermInfosReader.cs                           \
90         $(lucenedir)/Index/TermInfosWriter.cs                           \
91         $(lucenedir)/Index/TermPositions.cs                             \
92         $(lucenedir)/Index/TermPositionVector.cs                        \
93         $(lucenedir)/Index/TermVectorsReader.cs                         \
94         $(lucenedir)/Index/TermVectorsWriter.cs                         \
95         $(lucenedir)/Document/DateField.cs                              \
96         $(lucenedir)/Document/Document.cs                               \
97         $(lucenedir)/Document/Field.cs                                  \
98         $(lucenedir)/Analysis/DE/GermanAnalyzer.cs                      \
99         $(lucenedir)/Analysis/DE/GermanStemFilter.cs                    \
100         $(lucenedir)/Analysis/DE/GermanStemmer.cs                       \
101         $(lucenedir)/Analysis/DE/WordlistLoader.cs                      \
102         $(lucenedir)/Analysis/RU/RussianAnalyzer.cs                     \
103         $(lucenedir)/Analysis/RU/RussianCharsets.cs                     \
104         $(lucenedir)/Analysis/RU/RussianLetterTokenizer.cs              \
105         $(lucenedir)/Analysis/RU/RussianLowerCaseFilter.cs              \
106         $(lucenedir)/Analysis/RU/RussianStemFilter.cs                   \
107         $(lucenedir)/Analysis/RU/RussianStemmer.cs                      \
108         $(lucenedir)/Analysis/Standard/CharStream.cs                    \
109         $(lucenedir)/Analysis/Standard/FastCharStream.cs                \
110         $(lucenedir)/Analysis/Standard/ParseException.cs                \
111         $(lucenedir)/Analysis/Standard/StandardAnalyzer.cs              \
112         $(lucenedir)/Analysis/Standard/StandardFilter.cs                \
113         $(lucenedir)/Analysis/Standard/StandardTokenizer.cs             \
114         $(lucenedir)/Analysis/Standard/StandardTokenizerConstants.cs    \
115         $(lucenedir)/Analysis/Standard/StandardTokenizerTokenManager.cs \
116         $(lucenedir)/Analysis/Standard/Token.cs                         \
117         $(lucenedir)/Analysis/Standard/TokenMgrError.cs                 \
118         $(lucenedir)/Analysis/Analyzer.cs                               \
119         $(lucenedir)/Analysis/CharTokenizer.cs                          \
120         $(lucenedir)/Analysis/LetterTokenizer.cs                        \
121         $(lucenedir)/Analysis/LowerCaseFilter.cs                        \
122         $(lucenedir)/Analysis/LowerCaseTokenizer.cs                     \
123         $(lucenedir)/Analysis/PerFieldAnalyzerWrapper.cs                \
124         $(lucenedir)/Analysis/PorterStemFilter.cs                       \
125         $(lucenedir)/Analysis/PorterStemmer.cs                          \
126         $(lucenedir)/Analysis/SimpleAnalyzer.cs                         \
127         $(lucenedir)/Analysis/StopAnalyzer.cs                           \
128         $(lucenedir)/Analysis/StopFilter.cs                             \
129         $(lucenedir)/Analysis/Token.cs                                  \
130         $(lucenedir)/Analysis/TokenFilter.cs                            \
131         $(lucenedir)/Analysis/Tokenizer.cs                              \
132         $(lucenedir)/Analysis/TokenStream.cs                            \
133         $(lucenedir)/Analysis/WhitespaceAnalyzer.cs                     \
134         $(lucenedir)/Analysis/WhitespaceTokenizer.cs                    \
135         $(lucenedir)/Search/Spans/NearSpans.cs                          \
136         $(lucenedir)/Search/Spans/SpanFirstQuery.cs                     \
137         $(lucenedir)/Search/Spans/SpanNearQuery.cs                      \
138         $(lucenedir)/Search/Spans/SpanNotQuery.cs                       \
139         $(lucenedir)/Search/Spans/SpanOrQuery.cs                        \
140         $(lucenedir)/Search/Spans/SpanQuery.cs                          \
141         $(lucenedir)/Search/Spans/Spans.cs                              \
142         $(lucenedir)/Search/Spans/SpanScorer.cs                         \
143         $(lucenedir)/Search/Spans/SpanTermQuery.cs                      \
144         $(lucenedir)/Search/Spans/SpanWeight.cs                         \
145         $(lucenedir)/Search/BooleanClause.cs                            \
146         $(lucenedir)/Search/BooleanQuery.cs                             \
147         $(lucenedir)/Search/BooleanScorer.cs                            \
148         $(lucenedir)/Search/CachingWrapperFilter.cs                     \
149         $(lucenedir)/Search/ConjunctionScorer.cs                        \
150         $(lucenedir)/Search/DateFilter.cs                               \
151         $(lucenedir)/Search/DefaultSimilarity.cs                        \
152         $(lucenedir)/Search/ExactPhraseScorer.cs                        \
153         $(lucenedir)/Search/Explanation.cs                              \
154         $(lucenedir)/Search/FieldCache.cs                               \
155         $(lucenedir)/Search/FieldCacheImpl.cs                           \
156         $(lucenedir)/Search/FieldDoc.cs                                 \
157         $(lucenedir)/Search/FieldDocSortedHitQueue.cs                   \
158         $(lucenedir)/Search/FieldSortedHitQueue.cs                      \
159         $(lucenedir)/Search/Filter.cs                                   \
160         $(lucenedir)/Search/FilteredQuery.cs                            \
161         $(lucenedir)/Search/FilteredTermEnum.cs                         \
162         $(lucenedir)/Search/FuzzyQuery.cs                               \
163         $(lucenedir)/Search/FuzzyTermEnum.cs                            \
164         $(lucenedir)/Search/HitCollector.cs                             \
165         $(lucenedir)/Search/HitQueue.cs                                 \
166         $(lucenedir)/Search/Hits.cs                                     \
167         $(lucenedir)/Search/IndexSearcher.cs                            \
168         $(lucenedir)/Search/MultiSearcher.cs                            \
169         $(lucenedir)/Search/MultiTermQuery.cs                           \
170         $(lucenedir)/Search/ParallelMultiSearcher.cs                    \
171         $(lucenedir)/Search/PhrasePositions.cs                          \
172         $(lucenedir)/Search/PhrasePrefixQuery.cs                        \
173         $(lucenedir)/Search/PhraseQuery.cs                              \
174         $(lucenedir)/Search/PhraseQueue.cs                              \
175         $(lucenedir)/Search/PhraseScorer.cs                             \
176         $(lucenedir)/Search/PrefixQuery.cs                              \
177         $(lucenedir)/Search/Query.cs                                    \
178         $(lucenedir)/Search/QueryFilter.cs                              \
179         $(lucenedir)/Search/QueryTermVector.cs                          \
180         $(lucenedir)/Search/RangeQuery.cs                               \
181         $(lucenedir)/Search/RemoteSearchable.cs                         \
182         $(lucenedir)/Search/ScoreDoc.cs                                 \
183         $(lucenedir)/Search/ScoreDocComparator.cs                       \
184         $(lucenedir)/Search/Scorer.cs                                   \
185         $(lucenedir)/Search/Searchable.cs                               \
186         $(lucenedir)/Search/Searcher.cs                                 \
187         $(lucenedir)/Search/Similarity.cs                               \
188         $(lucenedir)/Search/SloppyPhraseScorer.cs                       \
189         $(lucenedir)/Search/Sort.cs                                     \
190         $(lucenedir)/Search/SortComparator.cs                           \
191         $(lucenedir)/Search/SortComparatorSource.cs                     \
192         $(lucenedir)/Search/SortField.cs                                \
193         $(lucenedir)/Search/TermQuery.cs                                \
194         $(lucenedir)/Search/TermScorer.cs                               \
195         $(lucenedir)/Search/TopDocs.cs                                  \
196         $(lucenedir)/Search/TopFieldDocs.cs                             \
197         $(lucenedir)/Search/Weight.cs                                   \
198         $(lucenedir)/Search/WildcardQuery.cs                            \
199         $(lucenedir)/Search/WildcardTermEnum.cs                         \
200         $(lucenedir)/QueryParser/CharStream.cs                          \
201         $(lucenedir)/QueryParser/FastCharStream.cs                      \
202         $(lucenedir)/QueryParser/MultiFieldQueryParser.cs               \
203         $(lucenedir)/QueryParser/ParseException.cs                      \
204         $(lucenedir)/QueryParser/QueryParser.cs                         \
205         $(lucenedir)/QueryParser/QueryParserConstants.cs                \
206         $(lucenedir)/QueryParser/QueryParserTokenManager.cs             \
207         $(lucenedir)/QueryParser/Token.cs                               \
208         $(lucenedir)/QueryParser/TokenMgrError.cs
210 LUCENE_CSFILES = $(LUCENE_1_4_CSFILES)
212 ############################################################
214 sqlitedir = $(srcdir)/Mono.Data.SqliteClient
216 SQLITE_CSFILES =                                        \
217         $(sqlitedir)/SqliteCommand.cs                   \
218         $(sqlitedir)/SqliteConnection.cs                \
219         $(sqlitedir)/Sqlite.cs                          \
220         $(sqlitedir)/SqliteDataAdapter.cs               \
221         $(sqlitedir)/SqliteDataReader.cs                \
222         $(sqlitedir)/SqliteException.cs                 \
223         $(sqlitedir)/SqliteParameterCollection.cs       \
224         $(sqlitedir)/SqliteParameter.cs                 \
225         $(sqlitedir)/SqliteRowUpdatedEventArgs.cs       \
226         $(sqlitedir)/SqliteRowUpdatedEventHandler.cs    \
227         $(sqlitedir)/SqliteRowUpdatingEventArgs.cs      \
228         $(sqlitedir)/SqliteRowUpdatingEventHandler.cs   \
229         $(sqlitedir)/SqliteTransaction.cs
231 ############################################################
233 DAEMON_DLL_TARGET = BeagleDaemonLib.dll
235 DAEMON_DLL_CSFLAGS = -target:library $(BEAGLE_DEFINES)
237 fsqueryabledir = $(srcdir)/FileSystemQueryable
238 FILE_SYSTEM_QUERYABLE_CSFILES =                                 \
239         $(fsqueryabledir)/DirectoryModel.cs                     \
240         $(fsqueryabledir)/DirectoryState.cs                     \
241         $(fsqueryabledir)/TreeCrawlTask.cs                      \
242         $(fsqueryabledir)/FileCrawlTask.cs                      \
243         $(fsqueryabledir)/DirectoryIndexableGenerator.cs        \
244         $(fsqueryabledir)/FileNameFilter.cs                     \
245         $(fsqueryabledir)/LuceneNameResolver.cs                 \
246         $(fsqueryabledir)/FileSystemQueryable.cs                \
247         $(fsqueryabledir)/IFileEventBackend.cs                  \
248         $(fsqueryabledir)/InotifyBackend.cs                     \
249         $(fsqueryabledir)/FileSystemWatcherBackend.cs
252 gaimlogqueryable = $(srcdir)/GaimLogQueryable
253 GAIM_LOG_QUERYABLE_CSFILES =                            \
254         $(gaimlogqueryable)/GaimLogQueryable.cs         \
255         $(gaimlogqueryable)/GaimLogCrawler.cs
257 edsqueryable = $(srcdir)/EvolutionDataServerQueryable
258 EDS_QUERYABLE_CSFILES =                                 \
259         $(edsqueryable)/EvolutionDataServerQueryable.cs \
260         $(edsqueryable)/EdsSource.cs
262 tomboyqueryable = $(srcdir)/TomboyQueryable
263 TOMBOY_QUERYABLE_CSFILES =                              \
264         $(tomboyqueryable)/TomboyQueryable.cs
266 evomailqueryable = $(srcdir)/EvolutionMailDriver
267 EVO_MAIL_QUERYABLE_CSFILES =                                    \
268         $(evomailqueryable)/EvolutionMailDriver.cs              \
269         $(evomailqueryable)/EvolutionMailIndexableGenerator.cs  \
270         $(evomailqueryable)/MailCrawler.cs
272 blamqueryable = $(srcdir)/BlamQueryable
273 BLAM_QUERYABLE_CSFILES =                                \
274         $(blamqueryable)/BlamQueryable.cs
276 lifereaqueryable = $(srcdir)/LifereaQueryable
277 LIFEREA_QUERYABLE_CSFILES =                             \
278         $(lifereaqueryable)/LifereaQueryable.cs
280 akregatorqueryable = $(srcdir)/AkregatorQueryable
281 AKREGATOR_QUERYABLE_CSFILES =                           \
282         $(akregatorqueryable)/AkregatorQueryable.cs
284 kopetequeryable = $(srcdir)/KopeteQueryable
285 KOPETE_QUERYABLE_CSFILES =                              \
286         $(kopetequeryable)/KopeteQueryable.cs           \
287         $(kopetequeryable)/KopeteCrawler.cs
289 indexingservicequeryable = $(srcdir)/IndexingServiceQueryable
290 INDEXING_SERVICE_QUERYABLE_CSFILES =                    \
291         $(indexingservicequeryable)/IndexingServiceQueryable.cs
293 DAEMON_DLL_CSFILES =                                            \
294         $(LUCENE_CSFILES)                                       \
295         $(EVO_MAIL_QUERYABLE_CSFILES)                           \
296         $(FILE_SYSTEM_QUERYABLE_CSFILES)                        \
297         $(GAIM_LOG_QUERYABLE_CSFILES)                           \
298         $(INDEXING_SERVICE_QUERYABLE_CSFILES)                   \
299         $(TOMBOY_QUERYABLE_CSFILES)                             \
300         $(BLAM_QUERYABLE_CSFILES)                               \
301         $(LIFEREA_QUERYABLE_CSFILES)                            \
302         $(AKREGATOR_QUERYABLE_CSFILES)                          \
303         $(KOPETE_QUERYABLE_CSFILES)                             \
304         $(srcdir)/FileAttributes.cs                             \
305         $(srcdir)/FileAttributesStore.cs                        \
306         $(srcdir)/FileAttributesStore_ExtendedAttribute.cs      \
307         $(srcdir)/FileAttributesStore_Mixed.cs                  \
308         $(srcdir)/FileAttributesStore_Sqlite.cs                 \
309         $(srcdir)/FilterFactory.cs                              \
310         $(srcdir)/GConfThreadHelper.cs                          \
311         $(srcdir)/GoogleDriver.cs                               \
312         $(srcdir)/IFileAttributesStore.cs                       \
313         $(srcdir)/IIndexer.cs                                   \
314         $(srcdir)/IndexSynchronization.cs                       \
315         $(srcdir)/IndexerReceipts.cs                            \
316         $(srcdir)/IQueryResult.cs                               \
317         $(srcdir)/IQueryWorker.cs                               \
318         $(srcdir)/IQueryable.cs                                 \
319         $(srcdir)/LuceneBitArray.cs                             \
320         $(srcdir)/LuceneCommon.cs                               \
321         $(srcdir)/LuceneIndexingDriver.cs                       \
322         $(srcdir)/LuceneQueryingDriver.cs                       \
323         $(srcdir)/LuceneFileQueryable.cs                        \
324         $(srcdir)/LuceneQueryable.cs                            \
325         $(srcdir)/NoiseFilter.cs                                \
326         $(srcdir)/QueryDriver.cs                                \
327         $(srcdir)/QueryExecutor.cs                              \
328         $(srcdir)/QueryResult.cs                                \
329         $(srcdir)/QueryStringParser.cs                          \
330         $(srcdir)/Queryable.cs                                  \
331         $(srcdir)/QueryableFlavor.cs                            \
332         $(srcdir)/RemoteControlExecutors.cs                     \
333         $(srcdir)/RemoteIndexerRequest.cs                       \
334         $(srcdir)/RemoteIndexerResponse.cs                      \
335         $(srcdir)/Server.cs                                     \
336         $(srcdir)/Shutdown.cs                                   \
337         $(srcdir)/SnippetExecutor.cs                            \
338         $(srcdir)/SnippetFu.cs                                  \
339         $(srcdir)/StaticQueryable.cs                            \
340         $(srcdir)/TextCache.cs
342 DAEMON_DLL_LOCAL_ASSEMBLIES =           \
343         ../Util/Util.dll                \
344         ../BeagleClient/Beagle.dll      \
345         ./$(PLUGIN_TARGET)
347 DAEMON_DLL_ASSEMBLIES =                         \
348         $(BEAGLED_LIBS)                         \
349         $(DAEMON_DLL_LOCAL_ASSEMBLIES:%=-r:%)   \
350         -r:ICSharpCode.SharpZipLib.dll          \
351         -r:Mono.Data.SqliteClient               \
352         -r:Mono.Posix                           \
353         -r:System.Runtime.Remoting              \
354         -r:System.Web
356 if USE_LOCAL_SQLITE
357 DAEMON_DLL_CSFILES += $(SQLITE_CSFILES)
358 DAEMON_DLL_ASSEMBLIES += -r:System.Data
359 else
360 DAEMON_DLL_ASSEMBLIES += -r:Mono.Data.SqliteClient
361 endif
364 if ENABLE_EVO_SHARP
365 DAEMON_DLL_CSFLAGS += -define:ENABLE_EVO_SHARP
366 DAEMON_DLL_CSFILES += $(EDS_QUERYABLE_CSFILES)
367 DAEMON_DLL_ASSEMBLIES += $(EVO_SHARP_LIBS)
368 endif
370 #if ENABLE_MOZILLA_BACKEND
371 #mozillaqueryable = $(srcdir)/MozillaQueryable
372 #MOZILLA_QUERYABLE_CSFILES =                            \
373 #       $(mozillaqueryable)/MozillaQueryable.cs
374 #DAEMON_DLL_CSFILES +=                                  \
375 #       $(MOZILLA_QUERYABLE_CSFILES)
376 #endif
378 if ENABLE_WEBSERVICES
379 DAEMON_DLL_CSFILES += \
380         $(webservicesdir)/WebServiceProxy.cs    \
381         $(webservicesdir)/NetBeagleHandler.cs   \
382         $(webservicesdir)/NetBeagleQueryable.cs 
383 DAEMON_DLL_ASSEMBLIES += -r:System.Web.Services 
384 endif
387 $(DAEMON_DLL_TARGET): $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_LOCAL_ASSEMBLIES)
388         $(CSC) -out:$@ $(DAEMON_DLL_CSFLAGS) $(DAEMON_DLL_CSFILES) $(DAEMON_DLL_ASSEMBLIES)
390 ############################################################
393 ### Web Services
396 webservicesdir = $(srcdir)/WebServices
397 xspdir = $(srcdir)/WebServices/WebServer
399 WEBSERVICES_XSP_TARGET = BeagleXsp.dll
401 WEBSERVICES_XSP_CSFLAGS = -target:library 
403 WEBSERVICES_XSP_ASSEMBLIES =                    \
404         -r:System                               \
405         -r:System.Web                           \
406         -r:System.Runtime.Remoting      
408 WEBSERVICES_XSP_CSFILES =                       \
409         $(xspdir)/IApplicationHost.cs           \
410         $(xspdir)/MonoWorkerRequest.cs          \
411         $(xspdir)/Tracing.cs                    \
412         $(xspdir)/ApplicationServer.cs          \
413         $(xspdir)/LingeringNetworkStream.cs     \
414         $(xspdir)/BaseApplicationHost.cs        \
415         $(xspdir)/BaseRequestBroker.cs          \
416         $(xspdir)/IWebSource.cs                 \
417         $(xspdir)/server.cs                     \
418         $(xspdir)/InitialWorkerRequest.cs       \
419         $(xspdir)/XSPApplicationHost.cs         \
420         $(xspdir)/XSPWorkerRequest.cs           \
421         $(xspdir)/AssemblyInfo.cs
423 $(WEBSERVICES_XSP_TARGET): $(WEBSERVICES_XSP_CSFILES) 
424         $(CSC) -out:$@ $(WEBSERVICES_XSP_CSFLAGS) $(WEBSERVICES_XSP_CSFILES) $(WEBSERVICES_XSP_ASSEMBLIES)
427 WEBSERVICES_BACKEND_TARGET = BeagleWebServicesBackEnd.dll
429 WEBSERVICES_BACKEND_LOCAL_ASSEMBLIES =  \
430         ../Util/Util.dll                \
431         ../images/Images.dll            \
432         ../BeagleClient/Beagle.dll      \
433         ../Tiles/Tiles.dll              \
434         BeagleDaemonPlugins.dll         \
435         BeagleDaemonLib.dll                     \
436         $(WEBSERVICES_XSP_TARGET)
438 WEBSERVICES_BACKEND_ASSEMBLIES = \
439         $(WEBSERVICES_BACKEND_LOCAL_ASSEMBLIES:%=-r:%)  \
440         -r:System                                       \
441         -r:System.Web                           \
442         -r:System.Runtime.Remoting      \
443         $(BEAGLED_LIBS)
445 WEBSERVICES_BACKEND_CSFILES = \
446         $(webservicesdir)/ExternalAccessFilter.cs       \
447         $(webservicesdir)/WebBackEnd.cs         \
448         $(webservicesdir)/WebServiceBackEnd.cs
450 WEBSERVICES_CSFLAGS = -target:library -noconfig
452 $(WEBSERVICES_BACKEND_TARGET): $(WEBSERVICES_BACKEND_CSFILES) $(WEBSERVICES_BACKEND_LOCAL_ASSEMBLIES)
453         $(CSC) -out:$@ $(WEBSERVICES_CSFLAGS) $(WEBSERVICES_BACKEND_CSFILES) $(WEBSERVICES_BACKEND_ASSEMBLIES)
455 WEBSERVICES_FRONTEND_TARGET = BeagleWebServicesFrontEnd.dll
456 WEBSERVICES_FRONTEND_CSFILES = \
457         $(webservicesdir)/WebFrontEnd.cs        \
458         $(webservicesdir)/WebServiceFrontEnd.cs
460 WEBSERVICES_FRONTEND_ASSEMBLIES =       \
461         $(WEBSERVICES_BACKEND_ASSEMBLIES)       \
462         -r:$(WEBSERVICES_BACKEND_TARGET)        \
463         -r:System.Web.Services
465 $(WEBSERVICES_FRONTEND_TARGET): $(WEBSERVICES_FRONTEND_CSFILES) $(WEBSERVICES_BACKEND_TARGET) 
466         $(CSC) -out:$@ $(WEBSERVICES_CSFLAGS) $(WEBSERVICES_FRONTEND_CSFILES) $(WEBSERVICES_FRONTEND_ASSEMBLIES)
468 WEBSERVICES_RESOURCES =                         \
469         $(webservicesdir)/search.aspx   \
470         $(webservicesdir)/search.asmx   \
471         $(webservicesdir)/web.config
473 WEBSERVICES_RESOURCES_DIST =            \
474         $(webservicesdir)/search.aspx   \
475         $(webservicesdir)/search.asmx   \
476         $(webservicesdir)/web.config
478 XSP_DIR = $(pkgdatadir)/xsp
479 XSPBIN_DIR = $(XSP_DIR)/bin
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         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
508         -r:Mono.Posix                           \
509         -r:ICSharpCode.SharpZipLib.dll
511 if ENABLE_WEBSERVICES
512 DAEMON_CSFLAGS += -define:ENABLE_WEBSERVICES
514 DAEMON_LOCAL_ASSEMBLIES +=              \
515         BeagleDaemonPlugins.dll         \
516         ../images/Images.dll            \
517         ../Tiles/Tiles.dll              \
518         $(WEBSERVICES_BACKEND_TARGET)   \
519         $(WEBSERVICES_FRONTEND_TARGET)  
521 DAEMON_ASSEMBLIES += -r:System.Runtime.Remoting
522 endif
524 $(DAEMON_TARGET): $(DAEMON_CSFILES) $(DAEMON_LOCAL_ASSEMBLIES)
525         $(CSC) -out:$@ $(DAEMON_CSFLAGS) $(DAEMON_CSFILES) $(DAEMON_ASSEMBLIES)
527 ############################################################
528 ############################################################
529 ############################################################
531 # This next section is a very good example of why we need real mono support in
532 # automake.  This is a massive wart on our development platform.
534 INDEX_HELPER_WRAPPER = beagled-index-helper
535 INDEX_HELPER_WRAPPER_IN = $(INDEX_HELPER_WRAPPER).in
536 INDEX_HELPER_TARGET = IndexHelper.exe
538 $(INDEX_HELPER_WRAPPER): $(srcdir)/$(INDEX_HELPER_WRAPPER_IN)
539         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_HELPER_TARGET)|g" < $(srcdir)/$(INDEX_HELPER_WRAPPER_IN) > $@
540         chmod +x $(INDEX_HELPER_WRAPPER)
542 INDEX_HELPER_CSFLAGS = -target:exe $(BEAGLE_DEFINES)
544 indexhelperdir = $(srcdir)/IndexHelper
546 INDEX_HELPER_CSFILES =  \
547         $(indexhelperdir)/IndexHelper.cs                \
548         $(indexhelperdir)/RemoteIndexerExecutor.cs
551 INDEX_HELPER_LOCAL_ASSEMBLIES = \
552         ../Util/Util.dll                \
553         ./$(DAEMON_DLL_TARGET)
555 INDEX_HELPER_ASSEMBLIES = \
556         $(BEAGLED_LIBS)                         \
557         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
558         -r:Mono.Posix                           \
559         -r:System.Runtime.Remoting              \
560         -r:ICSharpCode.SharpZipLib.dll
562 $(INDEX_HELPER_TARGET): $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_LOCAL_ASSEMBLIES)
563         $(CSC) -out:$@ $(INDEX_HELPER_CSFLAGS) $(INDEX_HELPER_CSFILES) $(INDEX_HELPER_ASSEMBLIES)
565 ############################################################
567 EXTRACT_CONTENT_WRAPPER = beagle-extract-content
568 EXTRACT_CONTENT_TARGET = ExtractContent.exe
570 $(EXTRACT_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
571         $(WRAPPER_SED) -e "s|\@target\@|$(EXTRACT_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
572         chmod +x $(EXTRACT_CONTENT_WRAPPER)
575 EXTRACT_CONTENT_CSFLAGS = \
576         -target:exe
578 EXTRACT_CONTENT_CSFILES = \
579         $(srcdir)/ExtractContent.cs
581 EXTRACT_CONTENT_LOCAL_ASSEMBLIES = \
582         ../Util/Util.dll                        \
583         ../BeagleClient/Beagle.dll              \
584         ./$(PLUGIN_TARGET)                      \
585         ./$(DAEMON_DLL_TARGET)
587 EXTRACT_CONTENT_ASSEMBLIES = \
588         $(BEAGLED_LIBS)                         \
589         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
590         -r:Mono.Posix                           \
591         -r:System.Runtime.Remoting              \
592         -r:ICSharpCode.SharpZipLib.dll
594 $(EXTRACT_CONTENT_TARGET): $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_LOCAL_ASSEMBLIES)
595         $(CSC) -out:$@ $(EXTRACT_CONTENT_CSFLAGS) $(EXTRACT_CONTENT_CSFILES) $(EXTRACT_CONTENT_ASSEMBLIES)
597 ############################################################
599 INDEX_WEB_CONTENT_WRAPPER = beagle-index-url
600 INDEX_WEB_CONTENT_TARGET = IndexWebContent.exe
602 $(INDEX_WEB_CONTENT_WRAPPER): $(srcdir)/$(WRAPPER_IN)
603         $(WRAPPER_SED) -e "s|\@target\@|$(INDEX_WEB_CONTENT_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
604         chmod +x $(INDEX_WEB_CONTENT_WRAPPER)
607 INDEX_WEB_CONTENT_CSFLAGS = \
608         -target:exe
610 INDEX_WEB_CONTENT_CSFILES = \
611         $(srcdir)/IndexWebContent.cs
613 INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES = \
614         ../Util/Util.dll                        \
615         ../BeagleClient/Beagle.dll              \
616         ./$(PLUGIN_TARGET)                      \
617         ./$(DAEMON_DLL_TARGET)
619 INDEX_WEB_CONTENT_ASSEMBLIES =  \
620         $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES:%=-r:%)
622 $(INDEX_WEB_CONTENT_TARGET): $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_LOCAL_ASSEMBLIES)
623         $(CSC) -out:$@ $(INDEX_WEB_CONTENT_CSFLAGS) $(INDEX_WEB_CONTENT_CSFILES) $(INDEX_WEB_CONTENT_ASSEMBLIES)
625 ############################################################
627 MASTER_DELETE_WRAPPER = beagle-master-delete-button
628 MASTER_DELETE_TARGET = MasterDelete.exe
630 $(MASTER_DELETE_WRAPPER): $(srcdir)/$(WRAPPER_IN)
631         $(WRAPPER_SED) -e "s|\@target\@|$(MASTER_DELETE_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
632         chmod +x $(MASTER_DELETE_WRAPPER)
635 MASTER_DELETE_CSFLAGS = \
636         -target:exe
638 MASTER_DELETE_CSFILES = \
639         $(srcdir)/MasterDelete.cs
641 MASTER_DELETE_LOCAL_ASSEMBLIES = \
642         ../Util/Util.dll                        \
643         ../BeagleClient/Beagle.dll              \
644         ./$(PLUGIN_TARGET)                      \
645         ./$(DAEMON_DLL_TARGET)
647 MASTER_DELETE_ASSEMBLIES = \
648         $(BEAGLED_LIBS)                         \
649         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
650         -r:Mono.Posix                           \
651         -r:System.Runtime.Remoting              \
652         -r:ICSharpCode.SharpZipLib.dll
654 $(MASTER_DELETE_TARGET): $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_LOCAL_ASSEMBLIES)
655         $(CSC) -out:$@ $(MASTER_DELETE_CSFLAGS) $(MASTER_DELETE_CSFILES) $(MASTER_DELETE_ASSEMBLIES)
657 ############################################################
659 SNIPPET_TEST_WRAPPER = beagle-snippet-test
660 SNIPPET_TEST_TARGET = SnippetTest.exe
662 $(SNIPPET_TEST_WRAPPER): $(srcdir)/$(WRAPPER_IN)
663         $(WRAPPER_SED) -e "s|\@target\@|$(SNIPPET_TEST_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
664         chmod +x $(SNIPPET_TEST_WRAPPER)
666 SNIPPET_TEST_CSFLAGS = \
667         -target:exe
669 SNIPPET_TEST_CSFILES = \
670         $(srcdir)/SnippetTest.cs
672 SNIPPET_TEST_LOCAL_ASSEMBLIES = \
673         ../Util/Util.dll                        \
674         ../BeagleClient/Beagle.dll              \
675         ./$(PLUGIN_TARGET)                      \
676         ./$(DAEMON_DLL_TARGET)
678 SNIPPET_TEST_ASSEMBLIES = \
679         $(BEAGLED_LIBS)                         \
680         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
681         -r:Mono.Posix                           \
682         -r:System.Runtime.Remoting              \
683         -r:ICSharpCode.SharpZipLib.dll
685 $(SNIPPET_TEST_TARGET): $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_LOCAL_ASSEMBLIES)
686         $(CSC) -out:$@ $(SNIPPET_TEST_CSFLAGS) $(SNIPPET_TEST_CSFILES) $(SNIPPET_TEST_ASSEMBLIES)
688 ############################################################
690 TERM_STATS_WRAPPER = beagle-term-stats
691 TERM_STATS_TARGET = TermStatsTool.exe
693 $(TERM_STATS_WRAPPER): $(srcdir)/$(WRAPPER_IN)
694         $(WRAPPER_SED) -e "s|\@target\@|$(TERM_STATS_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
695         chmod +x $(TERM_STATS_WRAPPER)
697 TERM_STATS_CSFLAGS = \
698         -target:exe
700 TERM_STATS_CSFILES = \
701         $(srcdir)/TermStatsTool.cs
703 TERM_STATS_LOCAL_ASSEMBLIES =   \
704         ../Util/Util.dll                        \
705         ../BeagleClient/Beagle.dll              \
706         ./$(PLUGIN_TARGET)                      \
707         ./$(DAEMON_DLL_TARGET)
709 TERM_STATS_ASSEMBLIES = \
710         $(BEAGLED_LIBS)                         \
711         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
712         -r:Mono.Posix                           \
713         -r:System.Runtime.Remoting              \
714         -r:ICSharpCode.SharpZipLib.dll
716 $(TERM_STATS_TARGET): $(TERM_STATS_CSFILES) $(TERM_STATS_LOCAL_ASSEMBLIES)
717         $(CSC) -out:$@ $(TERM_STATS_CSFLAGS) $(TERM_STATS_CSFILES) $(TERM_STATS_ASSEMBLIES)
719 ############################################################
721 NAME_INDEX_WRAPPER = beagle-name-index
722 NAME_INDEX_TARGET = NameIndexTool.exe
724 $(NAME_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
725         $(WRAPPER_SED) -e "s|\@target\@|$(NAME_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
726         chmod +x $(NAME_INDEX_WRAPPER)
728 NAME_INDEX_CSFLAGS = \
729         -target:exe
731 NAME_INDEX_CSFILES = \
732         $(srcdir)/NameIndexTool.cs
734 NAME_INDEX_LOCAL_ASSEMBLIES =   \
735         ../Util/Util.dll                        \
736         ../BeagleClient/Beagle.dll              \
737         ./$(PLUGIN_TARGET)                      \
738         ./$(DAEMON_DLL_TARGET)
740 NAME_INDEX_ASSEMBLIES = \
741         $(BEAGLED_LIBS)                         \
742         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
743         -r:Mono.Posix                           \
744         -r:System.Runtime.Remoting              \
745         -r:ICSharpCode.SharpZipLib.dll
747 $(NAME_INDEX_TARGET): $(NAME_INDEX_CSFILES) $(NAME_INDEX_LOCAL_ASSEMBLIES)
748         $(CSC) -out:$@ $(NAME_INDEX_CSFLAGS) $(NAME_INDEX_CSFILES) $(NAME_INDEX_ASSEMBLIES)
750 ############################################################
752 FS_SANITY_CHECK_WRAPPER = beagle-file-system-sanity-check
753 FS_SANITY_CHECK_TARGET = SanityCheckTool.exe
755 $(FS_SANITY_CHECK_WRAPPER): $(srcdir)/$(WRAPPER_IN)
756         $(WRAPPER_SED) -e "s|\@target\@|$(FS_SANITY_CHECK_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
757         chmod +x $(FS_SANITY_CHECK_WRAPPER)
759 FS_SANITY_CHECK_CSFLAGS = \
760         -target:exe
762 FS_SANITY_CHECK_CSFILES = \
763         $(srcdir)/SanityCheckTool.cs
765 FS_SANITY_CHECK_LOCAL_ASSEMBLIES = \
766         ../Util/Util.dll                        \
767         ../BeagleClient/Beagle.dll              \
768         ./$(PLUGIN_TARGET)                      \
769         ./$(DAEMON_DLL_TARGET)
771 FS_SANITY_CHECK_ASSEMBLIES = \
772         $(BEAGLED_LIBS)                         \
773         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
774         -r:Mono.Posix                           \
775         -r:System.Runtime.Remoting              \
776         -r:ICSharpCode.SharpZipLib.dll
778 $(FS_SANITY_CHECK_TARGET): $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_LOCAL_ASSEMBLIES)
779         $(CSC) -out:$@ $(FS_SANITY_CHECK_CSFLAGS) $(FS_SANITY_CHECK_CSFILES) $(FS_SANITY_CHECK_ASSEMBLIES)
781 ############################################################
783 BUILD_INDEX_WRAPPER = beagle-build-index
784 BUILD_INDEX_TARGET = BuildIndex.exe
786 $(BUILD_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
787         $(WRAPPER_SED) -e "s|\@target\@|$(BUILD_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
788         chmod +x $(BUILD_INDEX_WRAPPER)
790 BUILD_INDEX_CSFLAGS = \
791         -target:exe
793 BUILD_INDEX_CSFILES = \
794         $(srcdir)/BuildIndex.cs
796 BUILD_INDEX_LOCAL_ASSEMBLIES = \
797         ../Util/Util.dll                        \
798         ../BeagleClient/Beagle.dll              \
799         ./$(PLUGIN_TARGET)                      \
800         ./$(DAEMON_DLL_TARGET)
802 BUILD_INDEX_ASSEMBLIES = \
803         $(BEAGLED_LIBS)                         \
804         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
805         -r:Mono.Posix
807 $(BUILD_INDEX_TARGET): $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_LOCAL_ASSEMBLIES)
808         $(CSC) -out:$@ $(BUILD_INDEX_CSFLAGS) $(BUILD_INDEX_CSFILES) $(BUILD_INDEX_ASSEMBLIES)
810 ############################################################
812 MANAGE_INDEX_WRAPPER = beagle-manage-index
813 MANAGE_INDEX_TARGET = ManageIndex.exe
815 $(MANAGE_INDEX_WRAPPER): $(srcdir)/$(WRAPPER_IN)
816         $(WRAPPER_SED) -e "s|\@target\@|$(MANAGE_INDEX_TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
817         chmod +x $(MANAGE_INDEX_WRAPPER)
819 MANAGE_INDEX_CSFLAGS = \
820         -target:exe
822 MANAGE_INDEX_CSFILES = \
823         $(srcdir)/ManageIndex.cs
825 MANAGE_INDEX_LOCAL_ASSEMBLIES = \
826         ../Util/Util.dll                        \
827         ../BeagleClient/Beagle.dll              \
828         ./$(PLUGIN_TARGET)                      \
829         ./$(DAEMON_DLL_TARGET)
831 MANAGE_INDEX_ASSEMBLIES = \
832         $(BEAGLED_LIBS)                         \
833         $(DAEMON_LOCAL_ASSEMBLIES:%=-r:%)       \
834         -r:Mono.Posix
836 $(MANAGE_INDEX_TARGET): $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_LOCAL_ASSEMBLIES)
837         $(CSC) -out:$@ $(MANAGE_INDEX_CSFLAGS) $(MANAGE_INDEX_CSFILES) $(MANAGE_INDEX_ASSEMBLIES)
839 ############################################################
841 CRAWL_SYSTEM_IN = beagle-crawl-system.in
842 CRAWL_SYSTEM = beagle-crawl-system
844 $(CRAWL_SYSTEM): $(srcdir)/$(CRAWL_SYSTEM_IN)
845         $(WRAPPER_SEB) -e "s|\@target\@|$(CRAWL_SYSTEM)|g" < $(srcdir)/$(CRAWL_SYSTEM_IN) > $@
846         chmod +x $(CRAWL_SYSTEM)
848 # OK, now back to our regularly scheduled program.  But notice all of the
849 # EXTRA_DIST and CLEANFILES stuff at the bottom of the file.  Yuck.
851 ############################################################
852 ############################################################
853 ############################################################
855 #       $(MASTER_DELETE_TARGET)
857 #       $(FS_SANITY_CHECK_TARGET)
859 ALL_TARGETS =                           \
860         $(PLUGIN_TARGET)                \
861         $(DAEMON_DLL_TARGET)            \
862         $(DAEMON_TARGET)                \
863         $(INDEX_HELPER_TARGET)          \
864         $(INDEX_HELPER_WRAPPER)         \
865         $(INDEX_WEB_CONTENT_TARGET)     \
866         $(INDEX_WEB_CONTENT_WRAPPER)    \
867         $(EXTRACT_CONTENT_TARGET)       \
868         $(SNIPPET_TEST_TARGET)          \
869         $(TERM_STATS_TARGET)            \
870         $(NAME_INDEX_TARGET)            \
871         $(MANAGE_INDEX_TARGET)          \
872         $(MANAGE_INDEX_WRAPPER)         \
873         $(BUILD_INDEX_TARGET)           \
874         $(BUILD_INDEX_WRAPPER)
876 if ENABLE_WEBSERVICES
877 ALL_TARGETS +=                          \
878         $(XSP_TARGET)                   \
879         $(WEBSERVICES_FRONTEND_TARGET)  \
880         $(WEBSERVICES_BACKEND_TARGET)   
881 endif
883 man_MANS =                              \
884         beagled.1                       \
885         beagle-build-index.8            \
886         beagle-manage-index.8
888 all: $(ALL_TARGETS)
890 install-data-local: $(ALL_TARGETS)
891         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
892         $(mkinstalldirs) $(DESTDIR)$(pkgdatadir)
893 if ENABLE_WEBSERVICES
894         $(mkinstalldirs) $(DESTDIR)$(XSP_DIR)
895         $(mkinstalldirs) $(DESTDIR)$(XSPBIN_DIR)
896 endif
897         $(INSTALL_DATA) $(PLUGIN_TARGET) $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET)
898         $(INSTALL_DATA) $(DAEMON_DLL_TARGET) $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET)
899         $(INSTALL_DATA) $(DAEMON_TARGET) $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET)
900         $(INSTALL_DATA) $(INDEX_WEB_CONTENT_TARGET) $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET)
901         $(INSTALL_DATA) $(INDEX_HELPER_TARGET) $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET)
902         $(INSTALL_SCRIPT) $(INDEX_HELPER_WRAPPER) $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
903         $(INSTALL_DATA) $(BUILD_INDEX_TARGET) $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET)
904         $(INSTALL_DATA) $(MANAGE_INDEX_TARGET) $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET)
905 if ENABLE_WEBSERVICES
906         $(INSTALL_DATA) $(WEBSERVICES_XSP_TARGET) $(DESTDIR)$(pkglibdir)/$(WEBSERVICES_XSP_TARGET)
907         $(INSTALL_DATA) $(WEBSERVICES_BACKEND_TARGET) $(DESTDIR)$(pkglibdir)/$(WEBSERVICES_BACKEND_TARGET)
908         $(INSTALL_DATA) $(WEBSERVICES_FRONTEND_TARGET) $(DESTDIR)$(XSPBIN_DIR)/$(WEBSERVICES_FRONTEND_TARGET)
909         $(INSTALL_DATA) $(WEBSERVICES_BACKEND_TARGET) $(DESTDIR)$(XSPBIN_DIR)/$(WEBSERVICES_BACKEND_TARGET)
910         $(INSTALL_DATA)  $(WEBSERVICES_RESOURCES) $(DESTDIR)$(XSP_DIR)
911 #       $(INSTALL_DATA) ../Util/Util.dll ../images/Images.dll ../BeagleClient/Beagle.dll ../Tiles/Tiles.dll BeagleDaemonPlugins.dll BeagleDaemonLib.dll $(DESTDIR)$(XSPBIN_DIR)
913 endif
915 uninstall-local:
916 if ENABLE_WEBSERVICES
917         rm -f $(DESTDIR)$(pkglibdir)/$(WEBSERVICES_BACKEND_TARGET)
918         rm -f $(DESTDIR)$(pkglibdir)/$(WEBSERVICES_XSP_TARGET)
919         rm -rf $(DESTDIR)$(XSP_DIR)
920 endif
921         rm -f $(DESTDIR)$(pkglibdir)/$(PLUGIN_TARGET)
922         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_DLL_TARGET)
923         rm -f $(DESTDIR)$(pkglibdir)/$(DAEMON_TARGET)
924         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_TARGET)
925         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_HELPER_WRAPPER)
926         rm -f $(DESTDIR)$(pkglibdir)/$(INDEX_WEB_CONTENT_TARGET)
927         rm -f $(DESTDIR)$(pkglibdir)/$(BUILD_INDEX_TARGET)
928         rm -f $(DESTDIR)$(pkglibdir)/$(MANAGE_INDEX_TARGET)
930 bin_SCRIPTS = \
931         $(DAEMON_WRAPPER)               \
932         $(INDEX_WEB_CONTENT_WRAPPER)
934 sbin_SCRIPTS = \
935         $(BUILD_INDEX_WRAPPER)          \
936         $(MANAGE_INDEX_WRAPPER)
938 #       $(MASTER_DELETE_WRAPPER)
939 #       $(FS_SANITY_CHECK_WRAPPER)
941 noinst_SCRIPTS= \
942         $(EXTRACT_CONTENT_WRAPPER)      \
943         $(SNIPPET_TEST_WRAPPER)         \
944         $(TERM_STATS_WRAPPER)           \
945         $(NAME_INDEX_WRAPPER)           
948 COND_CS_FILES = \
949         $(MOZILLA_QUERYABLE_CSFILES)    \
950         $(WEBSERVICES_BACKEND_CSFILES)
952 EXTRA_DIST = \
953         $(WRAPPER_IN)                           \
954         $(DAEMON_WRAPPER_IN)                    \
955         $(INDEX_HELPER_WRAPPER_IN)              \
956         $(COND_CS_FILES)                        \
957         $(man_MANS)                             \
958         $(PLUGIN_CSFILES)                       \
959         $(DAEMON_DLL_CSFILES)                   \
960         $(DAEMON_CSFILES)                       \
961         $(EDS_QUERYABLE_CSFILES)                \
962         $(EXTRACT_CONTENT_CSFILES)              \
963         $(INDEX_WEB_CONTENT_CSFILES)            \
964         $(SNIPPET_TEST_CSFILES)                 \
965         $(INDEX_HELPER_CSFILES)                 \
966         $(MASTER_DELETE_CSFILES)                \
967         $(TERM_STATS_CSFILES)                   \
968         $(NAME_INDEX_CSFILES)                   \
969         $(FS_SANITY_CHECK_CSFILES)              \
970         $(MANAGE_INDEX_CSFILES)                 \
971         $(BUILD_INDEX_CSFILES)                  \
972         $(WEBSERVICES_XSP_CSFILES)              \
973         $(WEBSERVICES_BACKEND_CSFILES)          \
974         $(WEBSERVICES_FRONTEND_CSFILES)         \
975         $(WEBSERVICES_RESOURCES_DIST)           \
976         $(webservicesdir)/WebServiceProxy.cs    \
977         $(webservicesdir)/NetBeagleHandler.cs   \
978         $(webservicesdir)/NetBeagleQueryable.cs
980 CLEANFILES = \
981         $(PLUGIN_TARGET)                        \
982         $(PLUGIN_TARGET).mdb                    \
983         $(DAEMON_DLL_TARGET)                    \
984         $(DAEMON_DLL_TARGET).mdb                \
985         $(DAEMON_TARGET)                        \
986         $(DAEMON_TARGET).mdb                    \
987         $(DAEMON_WRAPPER)                       \
988         $(INDEX_HELPER_TARGET)                  \
989         $(INDEX_HELPER_TARGET).mdb              \
990         $(INDEX_HELPER_WRAPPER)                 \
991         $(EXTRACT_CONTENT_TARGET)               \
992         $(EXTRACT_CONTENT_TARGET).mdb           \
993         $(EXTRACT_CONTENT_WRAPPER)              \
994         $(INDEX_WEB_CONTENT_TARGET)             \
995         $(INDEX_WEB_CONTENT_TARGET).mdb         \
996         $(INDEX_WEB_CONTENT_WRAPPER)            \
997         $(MASTER_DELETE_TARGET)                 \
998         $(MASTER_DELETE_TARGET).mdb             \
999         $(MASTER_DELETE_WRAPPER)                \
1000         $(SNIPPET_TEST_TARGET)                  \
1001         $(SNIPPET_TEST_TARGET).mdb              \
1002         $(SNIPPET_TEST_WRAPPER)                 \
1003         $(TERM_STATS_TARGET)                    \
1004         $(TERM_STATS_TARGET).mdb                \
1005         $(TERM_STATS_WRAPPER)                   \
1006         $(NAME_INDEX_TARGET)                    \
1007         $(NAME_INDEX_TARGET).mdb                \
1008         $(NAME_INDEX_WRAPPER)                   \
1009         $(FS_SANITY_CHECK_TARGET)               \
1010         $(FS_SANITY_CHECK_TARGET).mdb           \
1011         $(FS_SANITY_CHECK_WRAPPER)              \
1012         $(MANAGE_INDEX_TARGET)                  \
1013         $(MANAGE_INDEX_TARGET).mdb              \
1014         $(MANAGE_INDEX_WRAPPER)                 \
1015         $(BUILD_INDEX_TARGET)                   \
1016         $(BUILD_INDEX_TARGET).mdb               \
1017         $(BUILD_INDEX_WRAPPER)                  \
1018         $(WEBSERVICES_BACKEND_TARGET)           \
1019         $(WEBSERVICES_BACKEND_TARGET).mdb       \
1020         $(WEBSERVICES_FRONTEND_TARGET)          \
1021         $(WEBSERVICES_FRONTEND_TARGET).mdb      \
1022         $(WEBSERVICES_XSP_TARGET)               \
1023         $(WEBSERVICES_XSP_TARGET).mdb