Add a new archived file tile to beagle-search. Still needs a little love.
[beagle.git] / search / Makefile.am
blobd39b4b8dae8e486f15bc14e405ebc57ce6120eed
1 CSC = $(MCS) -debug
2 CSFLAGS = -target:exe
4 if ENABLE_DESKTOP_LAUNCH
5 CSFLAGS += -define:ENABLE_DESKTOP_LAUNCH
6 endif
8 if ENABLE_OPEN_WITH
9 CSFLAGS += -define:ENABLE_OPEN_WITH
10 endif
12 if ENABLE_GALAGO
13 CSFLAGS += -define:ENABLE_GALAGO
14 endif
16 if ENABLE_THUNDERBIRD
17 CSFLAGS += -define:ENABLE_THUNDERBIRD
18 endif
20 pkglib_DATA = Search.exe Search.exe.mdb
22 BIN_WRAPPERS = beagle-search
24 beagle-search: beagle-search.in
25         sed                                     \
26         -e "s:@pkglibdir@:${pkglibdir}:"        \
27         -e "s:@bash@:$(BASH):"                  \
28         < $(srcdir)/beagle-search.in > beagle-search
29         chmod a+x beagle-search
31 CSFILES =                                       \
32         $(srcdir)/Category.cs                   \
33         $(srcdir)/ConversationCategory.cs       \
34         $(srcdir)/Entry.cs                      \
35         $(srcdir)/GroupView.cs                  \
36         $(srcdir)/NotificationArea.cs           \
37         $(srcdir)/Panes.cs                      \
38         $(srcdir)/Search.cs                     \
39         $(srcdir)/SortedTileList.cs             \
40         $(srcdir)/Spinner.cs                    \
41         $(srcdir)/TileCategory.cs               \
42         $(srcdir)/TypeFilter.cs                 \
43         $(srcdir)/UIManager.cs
45 TILES =                                         \
46         $(srcdir)/Tiles/ActionMenuItem.cs       \
47         $(srcdir)/Tiles/Application.cs          \
48         $(srcdir)/Tiles/ArchivedFile.cs         \
49         $(srcdir)/Tiles/AssemblyInfo.cs         \
50         $(srcdir)/Tiles/Audio.cs                \
51         $(srcdir)/Tiles/CApplet.cs              \
52         $(srcdir)/Tiles/Calendar.cs             \
53         $(srcdir)/Tiles/Contact.cs              \
54         $(srcdir)/Tiles/DetailsPane.cs          \
55         $(srcdir)/Tiles/File.cs                 \
56         $(srcdir)/Tiles/Folder.cs               \
57         $(srcdir)/Tiles/HitFlavor.cs            \
58         $(srcdir)/Tiles/IMLog.cs                \
59         $(srcdir)/Tiles/Image.cs                \
60         $(srcdir)/Tiles/MailMessage.cs          \
61         $(srcdir)/Tiles/MailAttachment.cs       \
62         $(srcdir)/Tiles/Note.cs                 \
63         $(srcdir)/Tiles/Presentation.cs         \
64         $(srcdir)/Tiles/RSSFeed.cs              \
65         $(srcdir)/Tiles/Spreadsheet.cs          \
66         $(srcdir)/Tiles/TextDocument.cs         \
67         $(srcdir)/Tiles/ThumbnailFactory.cs     \
68         $(srcdir)/Tiles/Tile.cs                 \
69         $(srcdir)/Tiles/TileAction.cs           \
70         $(srcdir)/Tiles/TileActivator.cs        \
71         $(srcdir)/Tiles/TileFlat.cs             \
72         $(srcdir)/Tiles/TileGroup.cs            \
73         $(srcdir)/Tiles/TileTemplate.cs         \
74         $(srcdir)/Tiles/Utils.cs                \
75         $(srcdir)/Tiles/Video.cs                \
76         $(srcdir)/Tiles/WebHistory.cs           \
77         $(srcdir)/Tiles/WidgetFu.cs             
79 if ENABLE_OPEN_WITH
80 TILES += $(srcdir)/Tiles/OpenWithMenu.cs
81 endif
83 PAGES =                                         \
84         $(srcdir)/Pages/Base.cs                 \
85         $(srcdir)/Pages/NoMatch.cs              \
86         $(srcdir)/Pages/QuickTips.cs            \
87         $(srcdir)/Pages/RootUser.cs             \
88         $(srcdir)/Pages/StartDaemon.cs
90 TRAY =                                          \
91         $(srcdir)/Tray/NotificationArea.cs      \
92         $(srcdir)/Tray/TrayIcon.cs
94 LOCAL_ASSEMBLIES =                      \
95         ../Util/Util.dll                \
96         ../Util/UiUtil.dll              \
97         ../images/Images.dll            \
98         ../BeagleClient/Beagle.dll
100 ASSEMBLIES =                            \
101         $(BEAGLE_UI_LIBS)               \
102         $(LOCAL_ASSEMBLIES:%=-r:%)      \
103         -r:Mono.Posix
105 Search.exe: $(CSFILES) $(TILES) $(PAGES) $(TRAY) $(LOCAL_ASSEMBLIES)
106         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(TILES) $(PAGES) $(TRAY) $(ASSEMBLIES)
108 Search.exe.mdb: Search.exe
110 @INTLTOOL_DESKTOP_RULE@
112 desktop_in_files = beagle-search.desktop.in
113 desktop_files = $(desktop_in_files:.desktop.in=.desktop)
114 desktop_h_files = $(desktop_in_files:.in=.in.h)
116 desktopdir       = $(datadir)/applications
117 desktop_DATA     = $(desktop_files)
119 all: $(BIN_WRAPPERS)
121 install-data-local: $(BIN_WRAPPERS)
122         $(mkinstalldirs) $(DESTDIR)$(bindir)
124         @sed -e "s|\#installed=1|installed=1|" < beagle-search > beagle-search.tmp
125         $(INSTALL_SCRIPT) beagle-search.tmp $(DESTDIR)$(bindir)/beagle-search
126         @rm -f beagle-search.tmp
128 uninstall-local:
129         rm -f $(DESTDIR)$(bindir)/beagle-search
131 EXTRA_DIST =                    \
132         $(CSFILES)              \
133         $(TILES)                \
134         $(PAGES)                \
135         $(TRAY)                 \
136         $(desktop_DATA).in      \
137         beagle-search.in        \
138         beagle-search.desktop.in.in
140 CLEANFILES =                    \
141         Search.exe              \
142         Search.exe.mdb          \
143         beagle-search           \
144         $(desktop_DATA)         \
145         $(desktop_h_files)