Merge the recent changes from HEAD onto the branch
[beagle.git] / Filters / Makefile.am
blob114faafbefd620c65503e5d4b811e13d8fd9ac3b
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         $(srcdir)/AssemblyInfo.cs       \
25         $(ENTAGGED_CSFILES)             \
26         $(HAP_CSFILES)                  \
27         $(srcdir)/FilterHtml.cs         \
28         $(srcdir)/FilterImage.cs        \
29         $(srcdir)/FilterJpeg.cs         \
30         $(srcdir)/FilterTiff.cs         \
31         $(srcdir)/FilterMan.cs          \
32         $(srcdir)/FilterOpenOffice.cs   \
33         $(srcdir)/FilterPdf.cs          \
34         $(srcdir)/FilterPng.cs          \
35         $(srcdir)/FilterText.cs         \
36         $(srcdir)/FilterRTF.cs          \
37         $(srcdir)/FilterSource.cs       \
38         $(srcdir)/FilterC.cs            \
39         $(srcdir)/FilterCpp.cs          \
40         $(srcdir)/FilterCSharp.cs       \
41         $(srcdir)/FilterJava.cs         \
42         $(srcdir)/FilterPython.cs       \
43         $(srcdir)/FilterPerl.cs         \
44         $(srcdir)/FilterPhp.cs          \
45         $(srcdir)/FilterFortran.cs      \
46         $(srcdir)/FilterPascal.cs       \
47         $(srcdir)/FilterAbiword.cs      \
48         $(srcdir)/FilterSpreadsheet.cs  \
49         $(srcdir)/FilterJs.cs           \
50         $(srcdir)/FilterLisp.cs         \
51         $(srcdir)/FilterMatlab.cs       \
52         $(srcdir)/FilterScilab.cs       \
53         $(srcdir)/FilterDocbook.cs      \
54         $(srcdir)/FilterMonodoc.cs      \
55         $(srcdir)/FilterDesktop.cs      \
56         $(srcdir)/FilterDirectory.cs    \
57         $(srcdir)/FilterMail.cs         \
58         $(srcdir)/FilterMusic.cs        \
59         $(srcdir)/FilterImLog.cs        \
60         $(srcdir)/FilterKonqHistory.cs  \
61         $(srcdir)/FilterShellscript.cs  \
62         $(srcdir)/FilterRuby.cs         \
63         $(srcdir)/FilterMPlayerVideo.cs \
64         $(srcdir)/FilterTotem.cs        \
65         $(srcdir)/FilterBmp.cs          \
66         $(srcdir)/FilterExternal.cs     \
67         $(srcdir)/FilterEbuild.cs       \
68         $(srcdir)/FilterGif.cs          \
69         $(srcdir)/FilterXslt.cs         \
70         $(srcdir)/FilterRPM.cs          \
71         $(srcdir)/FilterPackage.cs      \
72         $(srcdir)/FilterDeb.cs          \
73         $(srcdir)/FilterBoo.cs          \
74         $(srcdir)/FilterSvg.cs          \
75         $(srcdir)/FilterKAddressBook.cs \
76         $(srcdir)/FilterKCal.cs         \
77         $(srcdir)/FilterKNotes.cs       \
78         $(srcdir)/FilterLabyrinth.cs
80 if ENABLE_GSF_SHARP
81 CSFILES +=                              \
82         $(srcdir)/FilterOle.cs          \
83         $(srcdir)/FilterPPT.cs
85 if ENABLE_WV1
86 CSFILES += \
87         $(srcdir)/FilterDOC.cs          
88 endif
89 endif
91 if HAS_LIBCHM
92 CSFILES +=                              \
93         $(srcdir)/FilterChm.cs
94 endif
97 LOCAL_ASSEMBLIES =                              \
98         ../Util/Util.dll                        \
99         ../BeagleClient/Beagle.dll              \
100         ../beagled/BeagleDaemonPlugins.dll
102 ASSEMBLIES =                            \
103         $(BEAGLED_LIBS)                 \
104         $(SHARPZIPLIB_LIBS)             \
105         -r:Mono.Posix                   \
106         -r:System.Web                   \
107         $(LOCAL_ASSEMBLIES:%=-r:%)
109 RESOURCES =
111 $(TARGET): $(CSFILES)
112         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
114 all: $(TARGET)
116 install-data-local: $(TARGET)
117         $(mkinstalldirs) $(DESTDIR)$(FILTERDIR)
118         $(INSTALL_DATA) $(TARGET) $(TARGET).mdb $(DESTDIR)$(FILTERDIR)
120 uninstall-local:
121         rm -f $(DESTDIR)$(FILTERDIR)/$(TARGET)
122         rm -f $(DESTDIR)$(FILTERDIR)/$(TARGET).mdb
124 COND_CS_FILES = \
125         $(srcdir)/FilterOle.cs          \
126         $(srcdir)/FilterPPT.cs          \
127         $(srcdir)/FilterDOC.cs          \
128         $(srcdir)/FilterChm.cs
130 confdir = $(sysconfdir)/beagle
131 conf_DATA = external-filters.xml
133 EXTRA_DIST =                    \
134         $(CSFILES)              \
135         $(COND_CS_FILES)        \
136         $(conf_DATA)
138 CLEANFILES =            \
139         $(TARGET)       \
140         $(TARGET).mdb