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