2006-09-10 Francisco Javier F. Serrador <serrador@openshine.com>
[beagle.git] / search / Makefile.am
blobc17d539d960c146ed51de7453d7c16302497e50d
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 pkglib_DATA = Search.exe Search.exe.mdb
18 BIN_WRAPPERS = beagle-search
20 beagle-search: beagle-search.in
21         sed                                     \
22         -e "s:@pkglibdir@:${pkglibdir}:"        \
23         -e "s:@bash@:$(BASH):"                  \
24         < $(srcdir)/beagle-search.in > beagle-search
25         chmod a+x beagle-search
27 CSFILES =                                       \
28         $(srcdir)/Category.cs                   \
29         $(srcdir)/ConversationCategory.cs       \
30         $(srcdir)/Entry.cs                      \
31         $(srcdir)/GroupView.cs                  \
32         $(srcdir)/Panes.cs                      \
33         $(srcdir)/Search.cs                     \
34         $(srcdir)/SortedTileList.cs             \
35         $(srcdir)/Spinner.cs                    \
36         $(srcdir)/TileCategory.cs               \
37         $(srcdir)/TypeFilter.cs                 \
38         $(srcdir)/UIManager.cs
40 TILES =                                         \
41         $(srcdir)/Tiles/ActionMenuItem.cs       \
42         $(srcdir)/Tiles/Application.cs          \
43         $(srcdir)/Tiles/Audio.cs                \
44         $(srcdir)/Tiles/CApplet.cs              \
45         $(srcdir)/Tiles/Calendar.cs             \
46         $(srcdir)/Tiles/Contact.cs              \
47         $(srcdir)/Tiles/DetailsPane.cs          \
48         $(srcdir)/Tiles/File.cs                 \
49         $(srcdir)/Tiles/Folder.cs               \
50         $(srcdir)/Tiles/HitFlavor.cs            \
51         $(srcdir)/Tiles/IMLog.cs                \
52         $(srcdir)/Tiles/Image.cs                \
53         $(srcdir)/Tiles/MailMessage.cs          \
54         $(srcdir)/Tiles/MailAttachment.cs       \
55         $(srcdir)/Tiles/Note.cs                 \
56         $(srcdir)/Tiles/Presentation.cs         \
57         $(srcdir)/Tiles/RSSFeed.cs              \
58         $(srcdir)/Tiles/Spreadsheet.cs          \
59         $(srcdir)/Tiles/TextDocument.cs         \
60         $(srcdir)/Tiles/ThumbnailFactory.cs     \
61         $(srcdir)/Tiles/Tile.cs                 \
62         $(srcdir)/Tiles/TileAction.cs           \
63         $(srcdir)/Tiles/TileActivator.cs        \
64         $(srcdir)/Tiles/TileFlat.cs             \
65         $(srcdir)/Tiles/TileGroup.cs            \
66         $(srcdir)/Tiles/TileTemplate.cs         \
67         $(srcdir)/Tiles/Utils.cs                \
68         $(srcdir)/Tiles/Video.cs                \
69         $(srcdir)/Tiles/WebHistory.cs           \
70         $(srcdir)/Tiles/WidgetFu.cs             
72 if ENABLE_OPEN_WITH
73 TILES += $(srcdir)/Tiles/OpenWithMenu.cs
74 endif
76 PAGES =                                         \
77         $(srcdir)/Pages/Base.cs                 \
78         $(srcdir)/Pages/NoMatch.cs              \
79         $(srcdir)/Pages/QuickTips.cs            \
80         $(srcdir)/Pages/RootUser.cs             \
81         $(srcdir)/Pages/StartDaemon.cs
83 TRAY =                                          \
84         $(srcdir)/Tray/NotificationArea.cs      \
85         $(srcdir)/Tray/TrayIcon.cs
87 LOCAL_ASSEMBLIES =                      \
88         ../Util/Util.dll                \
89         ../Util/UiUtil.dll              \
90         ../images/Images.dll            \
91         ../BeagleClient/Beagle.dll
93 ASSEMBLIES =                            \
94         $(BEAGLE_UI_LIBS)               \
95         $(LOCAL_ASSEMBLIES:%=-r:%)      \
96         -r:Mono.Posix
98 Search.exe: $(CSFILES) $(TILES) $(PAGES) $(TRAY) $(LOCAL_ASSEMBLIES)
99         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(TILES) $(PAGES) $(TRAY) $(ASSEMBLIES)
101 Search.exe.mdb: Search.exe
103 @INTLTOOL_DESKTOP_RULE@
105 desktop_in_files = beagle-search.desktop.in
106 desktop_files = $(desktop_in_files:.desktop.in=.desktop)
107 desktop_h_files = $(desktop_in_files:.in=.in.h)
109 desktopdir       = $(datadir)/applications
110 desktop_DATA     = $(desktop_files)
112 all: $(BIN_WRAPPERS)
114 install-data-local: $(BIN_WRAPPERS)
115         $(mkinstalldirs) $(DESTDIR)$(bindir)
117         @sed -e "s|\#installed=1|installed=1|" < beagle-search > beagle-search.tmp
118         $(INSTALL_SCRIPT) beagle-search.tmp $(DESTDIR)$(bindir)/beagle-search
119         @rm -f beagle-search.tmp
121 uninstall-local:
122         rm -f $(DESTDIR)$(bindir)/beagle-search
124 EXTRA_DIST =                    \
125         $(CSFILES)              \
126         $(TILES)                \
127         $(PAGES)                \
128         $(TRAY)                 \
129         $(desktop_DATA).in      \
130         beagle-search.in
132 CLEANFILES =                    \
133         Search.exe              \
134         Search.exe.mdb          \
135         beagle-search           \
136         $(desktop_DATA)         \
137         $(desktop_h_files)