Forgot to bump FSQ version. Weekend syndrome.
[beagle.git] / search / Makefile.am
blob6b7688a24667eba6250471b4b48a0fba4a9adc68
1 CSC = mcs -debug
2 CSFLAGS = -target:exe
4 if ENABLE_DESKTOP_LAUNCH
5 CSFLAGS += -define:ENABLE_DESKTOP_LAUNCH
6 endif
8 pkglib_DATA = Search.exe Search.exe.mdb
10 BIN_WRAPPERS = beagle-search
12 beagle-search: beagle-search.in
13         sed -e "s:@pkglibdir@:${pkglibdir}:" < $(srcdir)/beagle-search.in > beagle-search
14         chmod a+x beagle-search
16 CSFILES =                                       \
17         $(srcdir)/Category.cs                   \
18         $(srcdir)/ConversationCategory.cs       \
19         $(srcdir)/Entry.cs                      \
20         $(srcdir)/GroupView.cs                  \
21         $(srcdir)/Panes.cs                      \
22         $(srcdir)/Search.cs                     \
23         $(srcdir)/SortedTileList.cs             \
24         $(srcdir)/Spinner.cs                    \
25         $(srcdir)/TileCategory.cs               \
26         $(srcdir)/TypeFilter.cs                 \
27         $(srcdir)/UIManager.cs
29 TILES =                                         \
30         $(srcdir)/Tiles/ActionMenuItem.cs       \
31         $(srcdir)/Tiles/Application.cs          \
32         $(srcdir)/Tiles/Audio.cs                \
33         $(srcdir)/Tiles/CApplet.cs              \
34         $(srcdir)/Tiles/Contact.cs              \
35         $(srcdir)/Tiles/DetailsPane.cs          \
36         $(srcdir)/Tiles/File.cs                 \
37         $(srcdir)/Tiles/Folder.cs               \
38         $(srcdir)/Tiles/HitFlavor.cs            \
39         $(srcdir)/Tiles/IMLog.cs                \
40         $(srcdir)/Tiles/Image.cs                \
41         $(srcdir)/Tiles/MailMessage.cs          \
42         $(srcdir)/Tiles/MailAttachment.cs       \
43         $(srcdir)/Tiles/Note.cs                 \
44         $(srcdir)/Tiles/Presentation.cs         \
45         $(srcdir)/Tiles/RSSFeed.cs              \
46         $(srcdir)/Tiles/Spreadsheet.cs          \
47         $(srcdir)/Tiles/TextDocument.cs         \
48         $(srcdir)/Tiles/ThumbnailFactory.cs     \
49         $(srcdir)/Tiles/Tile.cs                 \
50         $(srcdir)/Tiles/TileAction.cs           \
51         $(srcdir)/Tiles/TileActivator.cs        \
52         $(srcdir)/Tiles/TileFlat.cs             \
53         $(srcdir)/Tiles/TileGroup.cs            \
54         $(srcdir)/Tiles/TileTemplate.cs         \
55         $(srcdir)/Tiles/Utils.cs                \
56         $(srcdir)/Tiles/Video.cs                \
57         $(srcdir)/Tiles/WebHistory.cs           \
58         $(srcdir)/Tiles/WidgetFu.cs
61 PAGES =                                         \
62         $(srcdir)/Pages/Base.cs                 \
63         $(srcdir)/Pages/NoMatch.cs              \
64         $(srcdir)/Pages/QuickTips.cs            \
65         $(srcdir)/Pages/RootUser.cs             \
66         $(srcdir)/Pages/StartDaemon.cs
68 TRAY =                                          \
69         $(srcdir)/Tray/NotificationArea.cs      \
70         $(srcdir)/Tray/TrayIcon.cs
72 LOCAL_ASSEMBLIES =                      \
73         ../Util/Util.dll                \
74         ../Util/UiUtil.dll              \
75         ../images/Images.dll            \
76         ../BeagleClient/Beagle.dll
78 ASSEMBLIES =                            \
79         $(BEAGLE_UI_LIBS)               \
80         $(LOCAL_ASSEMBLIES:%=-r:%)      \
81         -r:Mono.Posix
83 Search.exe: $(CSFILES) $(TILES) $(PAGES) $(TRAY) $(LOCAL_ASSEMBLIES)
84         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(TILES) $(PAGES) $(TRAY) $(ASSEMBLIES)
86 Search.exe.mdb: Search.exe
88 @INTLTOOL_DESKTOP_RULE@
90 desktop_in_files = beagle-search.desktop.in
91 desktop_files = $(desktop_in_files:.desktop.in=.desktop)
92 desktop_h_files = $(desktop_in_files:.in=.in.h)
94 desktopdir       = $(datadir)/applications
95 desktop_DATA     = $(desktop_files)
97 all: $(BIN_WRAPPERS)
99 install-data-local: $(BIN_WRAPPERS)
100         $(mkinstalldirs) $(DESTDIR)$(bindir)
102         @sed -e "s|\#installed=1|installed=1|" < beagle-search > beagle-search.tmp
103         $(INSTALL_SCRIPT) beagle-search.tmp $(DESTDIR)$(bindir)/beagle-search
104         @rm -f beagle-search.tmp
106 uninstall-local:
107         rm -f $(DESTDIR)$(bindir)/beagle-search
109 EXTRA_DIST =                    \
110         $(CSFILES)              \
111         $(TILES)                \
112         $(PAGES)                \
113         $(TRAY)                 \
114         $(desktop_DATA).in      \
115         beagle-search.in
117 CLEANFILES =                    \
118         Search.exe              \
119         Search.exe.mdb          \
120         beagle-search           \
121         $(desktop_DATA)         \
122         $(desktop_h_files)