FilterHtml.cs: Add ExtractText(string) command to extract text out of large html...
[beagle.git] / Filters / Makefile.am
blob55b9bd707c104b7763cfef7b046a7a809d6ce98f
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          \
73         $(srcdir)/FilterKCal.cs         \
74         $(srcdir)/FilterKNotes.cs
76 if ENABLE_GSF_SHARP
77 CSFILES +=                              \
78         $(srcdir)/FilterOle.cs          \
79         $(srcdir)/FilterPPT.cs
81 if ENABLE_WV1
82 CSFILES += \
83         $(srcdir)/FilterDOC.cs          
84 endif
85 endif
87 if HAS_LIBCHM
88 CSFILES +=                              \
89         $(srcdir)/FilterChm.cs
90 endif
93 LOCAL_ASSEMBLIES =                              \
94         ../Util/Util.dll                        \
95         ../BeagleClient/Beagle.dll              \
96         ../beagled/BeagleDaemonPlugins.dll
98 ASSEMBLIES =                            \
99         $(BEAGLED_LIBS)                 \
100         $(SHARPZIPLIB_LIBS)             \
101         -r:Mono.Posix                   \
102         -r:System.Web                   \
103         $(LOCAL_ASSEMBLIES:%=-r:%)
105 RESOURCES =
107 $(TARGET): $(CSFILES)
108         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
110 all: $(TARGET)
112 install-data-local: $(TARGET)
113         $(mkinstalldirs) $(DESTDIR)$(FILTERDIR)
114         $(INSTALL_DATA) $(TARGET) $(TARGET).mdb $(DESTDIR)$(FILTERDIR)
116 uninstall-local:
117         rm -f $(DESTDIR)$(FILTERDIR)/$(TARGET)
118         rm -f $(DESTDIR)$(FILTERDIR)/$(TARGET).mdb
120 COND_CS_FILES = \
121         $(srcdir)/FilterOle.cs          \
122         $(srcdir)/FilterPPT.cs          \
123         $(srcdir)/FilterDOC.cs          \
124         $(srcdir)/FilterChm.cs
126 confdir = $(sysconfdir)/beagle
127 conf_DATA = external-filters.xml
129 EXTRA_DIST =                    \
130         $(CSFILES)              \
131         $(COND_CS_FILES)        \
132         $(conf_DATA)
134 CLEANFILES =            \
135         $(TARGET)       \
136         $(TARGET).mdb