Dont throw EncodingFoundException unless asked to. Should remove the occassional...
[beagle.git] / Filters / Makefile.am
blobace302967e82f28c66c73110f0a60c522767af9a
2 FILTERDIR = $(pkglibdir)/Filters
3 CSC = mcs -debug
5 TARGET = Filters.dll
7 CSFLAGS = -target:library
9 # Found at http://sharptoolbox.madgeek.com/
10 HAP_CSFILES =                                           \
11         $(srcdir)/HtmlAgilityPack/crc32.cs              \
12         $(srcdir)/HtmlAgilityPack/Header.cs             \
13         $(srcdir)/HtmlAgilityPack/HtmlAttribute.cs      \
14         $(srcdir)/HtmlAgilityPack/HtmlDocument.cs       \
15         $(srcdir)/HtmlAgilityPack/HtmlEntity.cs         \
16         $(srcdir)/HtmlAgilityPack/HtmlNode.cs           \
17         $(srcdir)/HtmlAgilityPack/HtmlNodeNavigator.cs  \
18         $(srcdir)/HtmlAgilityPack/MixedCodeDocument.cs  \
19         $(srcdir)/HtmlAgilityPack/tools.cs
21 include entagged-sharp/entagged-sharp.sources
23 CSFILES =                               \
24         $(ENTAGGED_CSFILES)             \
25         $(HAP_CSFILES)                  \
26         $(srcdir)/FilterHtml.cs         \
27         $(srcdir)/FilterImage.cs        \
28         $(srcdir)/FilterJpeg.cs         \
29         $(srcdir)/FilterTiff.cs         \
30         $(srcdir)/FilterMan.cs          \
31         $(srcdir)/FilterOpenOffice.cs   \
32         $(srcdir)/FilterPdf.cs          \
33         $(srcdir)/FilterPng.cs          \
34         $(srcdir)/FilterText.cs         \
35         $(srcdir)/FilterRTF.cs          \
36         $(srcdir)/FilterSource.cs       \
37         $(srcdir)/FilterC.cs            \
38         $(srcdir)/FilterCpp.cs          \
39         $(srcdir)/FilterCSharp.cs       \
40         $(srcdir)/FilterJava.cs         \
41         $(srcdir)/FilterPython.cs       \
42         $(srcdir)/FilterPerl.cs         \
43         $(srcdir)/FilterPhp.cs          \
44         $(srcdir)/FilterFortran.cs      \
45         $(srcdir)/FilterPascal.cs       \
46         $(srcdir)/FilterAbiword.cs      \
47         $(srcdir)/FilterSpreadsheet.cs  \
48         $(srcdir)/FilterJs.cs           \
49         $(srcdir)/FilterLisp.cs         \
50         $(srcdir)/FilterMatlab.cs       \
51         $(srcdir)/FilterScilab.cs       \
52         $(srcdir)/FilterDocbook.cs      \
53         $(srcdir)/FilterMonodoc.cs      \
54         $(srcdir)/FilterDesktop.cs      \
55         $(srcdir)/FilterDirectory.cs    \
56         $(srcdir)/FilterMail.cs         \
57         $(srcdir)/FilterMusic.cs        \
58         $(srcdir)/FilterImLog.cs        \
59         $(srcdir)/FilterKonqHistory.cs  \
60         $(srcdir)/FilterShellscript.cs  \
61         $(srcdir)/FilterRuby.cs         \
62         $(srcdir)/FilterMPlayerVideo.cs \
63         $(srcdir)/FilterBmp.cs          \
64         $(srcdir)/FilterExternal.cs     \
65         $(srcdir)/FilterEbuild.cs       \
66         $(srcdir)/FilterGif.cs          \
67         $(srcdir)/FilterXslt.cs         \
68         $(srcdir)/FilterRPM.cs          \
69         $(srcdir)/FilterPackage.cs      \
70         $(srcdir)/FilterDeb.cs          \
71         $(srcdir)/FilterBoo.cs          \
72         $(srcdir)/FilterSvg.cs
74 if ENABLE_GSF_SHARP
75 CSFILES +=                              \
76         $(srcdir)/FilterOle.cs          \
77         $(srcdir)/FilterPPT.cs
79 if ENABLE_WV1
80 CSFILES += \
81         $(srcdir)/FilterDOC.cs          
82 endif
83 endif
85 if HAS_LIBCHM
86 CSFILES +=                              \
87         $(srcdir)/FilterChm.cs
88 endif
91 LOCAL_ASSEMBLIES =                              \
92         ../Util/Util.dll                        \
93         ../BeagleClient/Beagle.dll              \
94         ../beagled/BeagleDaemonPlugins.dll
96 ASSEMBLIES =                            \
97         $(BEAGLED_LIBS)                 \
98         $(SHARPZIPLIB_LIBS)             \
99         -r:Mono.Posix                   \
100         -r:System.Web                   \
101         $(LOCAL_ASSEMBLIES:%=-r:%)
103 RESOURCES =
105 $(TARGET): $(CSFILES)
106         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
108 all: $(TARGET)
110 install-data-local: $(TARGET)
111         $(mkinstalldirs) $(DESTDIR)$(FILTERDIR)
112         $(INSTALL_DATA) $(TARGET) $(TARGET).mdb $(DESTDIR)$(FILTERDIR)
114 uninstall-local:
115         rm -f $(DESTDIR)$(FILTERDIR)/$(TARGET)
116         rm -f $(DESTDIR)$(FILTERDIR)/$(TARGET).mdb
118 COND_CS_FILES = \
119         $(srcdir)/FilterOle.cs          \
120         $(srcdir)/FilterPPT.cs          \
121         $(srcdir)/FilterDOC.cs          \
122         $(srcdir)/FilterChm.cs
124 confdir = $(sysconfdir)/beagle
125 conf_DATA = external-filters.xml
127 EXTRA_DIST =                    \
128         $(CSFILES)              \
129         $(COND_CS_FILES)        \
130         $(conf_DATA)
132 CLEANFILES =            \
133         $(TARGET)       \
134         $(TARGET).mdb