2006-04-25 Hendrik Brandt <heb@gnome-de.org>
[beagle.git] / Best / Makefile.am
blob041af79c8a6172f4cf8bf128bada3c78a7442230
2 CSC = mcs -debug
4 TARGET = Best.exe
5 WRAPPER = best
7 WRAPPER_SED = sed                                       \
8         -e "s|\@prefix\@|$(prefix)|g"                   \
9         -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
10         -e "s|\@target\@|$(TARGET)|g"                   \
11         -e "s|\@gacprefix\@|$(GAC_PREFIX)|g"            \
12         -e "s|\@mozillahome\@|$(MOZILLA_HOME)|g"        \
13         -e "s|\@bash\@|$(BASH)|g"
15 CSFLAGS = -target:exe
17 CSFILES =                               \
18         $(srcdir)/Best.cs               \
19         $(srcdir)/BestWindow.cs         \
20         $(srcdir)/BestTray.cs
22 LOCAL_ASSEMBLIES =                      \
23         ../Util/Util.dll                \
24         ../images/Images.dll            \
25         ../BeagleClient/Beagle.dll      \
26         ../Tiles/Tiles.dll
28 ASSEMBLIES =                            \
29         $(EVO_SHARP_LIBS)               \
30         $(BEAGLE_UI_LIBS)               \
31         $(LOCAL_ASSEMBLIES:%=-r:%)      \
32         -r:Mono.Posix
34 RESOURCES =
36 $(TARGET): $(CSFILES) $(LOCAL_ASSEMBLIES) $(RESOURCES)
37         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
39 all: $(TARGET)
41 install-data-local: $(TARGET)
42         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
43         $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)/$(TARGET)
45 uninstall-local:
46         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
49 bin_SCRIPTS = $(WRAPPER)
51 $(WRAPPER): $(srcdir)/$(WRAPPER).in
52         $(WRAPPER_SED) < $^ > $@
53         chmod +x $(WRAPPER)
55 @INTLTOOL_DESKTOP_RULE@
57 desktop_in_files = best.desktop.in
58 desktop_files = $(desktop_in_files:.desktop.in=.desktop)
59 desktop_h_files = $(desktop_in_files:.in=.in.h)
61 desktopdir = $(datadir)/applications
62 desktop_DATA = $(desktop_files)
64 man_MANS = best.1
66 EXTRA_DIST =                    \
67         $(CSFILES)              \
68         $(WRAPPER).in           \
69         $(desktop_in_files)     \
70         $(desktop_DATA)         \
71         $(man_MANS)
73 CLEANFILES =                    \
74         $(desktop_DATA)         \
75         $(TARGET)               \
76         $(TARGET).mdb           \
77         $(desktop_h_files)      \
78         $(WRAPPER)