Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / bludgeon / Makefile.am
blobc74b9ffd9523cfd63f6a753c57f8df8f23e23c27
2 CSC = mcs -debug
4 LOCAL_ASSEMBLIES =                      \
5         ../Util/Util.dll                \
6         ../BeagleClient/Beagle.dll
8 ASSEMBLIES =                            \
9         $(EVO_SHARP_LIBS)               \
10         $(BEAGLE_UI_LIBS)               \
11         $(LOCAL_ASSEMBLIES:%=-r:%)
13 WRAPPER_IN = bludgeon.in
14 WRAPPER_SED = sed                                       \
15         -e "s|\@prefix\@|$(prefix)|g"                   \
16         -e "s|\@pkglibdir\@|$(pkglibdir)|g"             \
17         -e "s|\@libdir\@|$(libdir)|g"                   \
18         -e "s|\@bindir\@|$(bindir)|g"                   \
19         -e "s|\@sbindir\@|$(sbindir)|g"                 \
20         -e "s|\@sysconfdir\@|$(sysconfdir)|g"           \
21         -e "s|\@localstatedir\@|$(localstatedir)|g"     \
22         -e "s|\@gacprefix\@|$(GAC_PREFIX)|g"            \
23         -e "s|\@bash\@|$(BASH)|"
25 WRAPPER = bludgeon
27 TARGET = Bludgeon.exe
29 CSFILES =                               \
30         $(srcdir)/Daemon.cs             \
31         $(srcdir)/FileModel.cs          \
32         $(srcdir)/Log.cs                \
33         $(srcdir)/Token.cs              \
34         $(srcdir)/QueryFu.cs            \
35         $(srcdir)/SanityCheck.cs        \
36         $(srcdir)/Bludgeon.cs
38 $(TARGET): $(CSFILES) $(LOCAL_ASSEMBLIES)
39         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES)
41 $(WRAPPER) : $(WRAPPER_IN)
42         $(WRAPPER_SED) -e "s|\@target\@|$(TARGET)|g" < $(srcdir)/$(WRAPPER_IN) > $@
43         chmod +x $(WRAPPER)
45 noinst_SCRIPTS =                        \
46         $(WRAPPER)
48 all: $(TARGET) $(WRAPPER)
50 # don't install anything
51 # install-data-local: $(TARGET)
52 #       $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
53 #       $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)
55 #uninstall-local:
56 #       cd $(DESTDIR)$(pkglibdir) && rm -f $(TARGET)
58 EXTRA_DIST =                            \
59         $(WRAPPER_IN)                   \
60         $(CSFILES)                      \
61         beagle.dummy
63 CLEANFILES =                            \
64         $(TARGET)                       \
65         $(TARGET:%=%.mdb)               \
66         $(WRAPPER)