Thumbnail file hits. Based on a patch from D Bera
[beagle.git] / ImLogViewer / Makefile.am
blob765f6c5eef72089475e8b29cf378a9acc8197165
2 CSC = mcs -debug -nowarn:0219
4 TARGET = ImLogViewer.exe
5 WRAPPER = beagle-imlogviewer
7 CSFLAGS = -target:exe
9 CSFILES =                               \
10         $(srcdir)/ImLogViewer.cs        \
11         $(srcdir)/ImLogWindow.cs
13 LOCAL_ASSEMBLIES =                      \
14         ../Util/Util.dll
16 ASSEMBLIES =                            \
17         $(BEAGLE_UI_LIBS)               \
18         $(LOCAL_ASSEMBLIES:%=-r:%)      \
19         -r:Mono.Posix
21 RESOURCEFILES =                         \
22         $(srcdir)/ImLogViewer.glade
24 # Makefile-fu to map /path/filename to -resource:/path/filename,filename
25 RESOURCES = $(join $(RESOURCEFILES:%=-resource:%,),$(notdir $(RESOURCEFILES)))
27 $(TARGET): $(CSFILES) $(LOCAL_ASSEMBLIES) $(RESOURCEFILES)
28         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
30 all: $(TARGET)
32 install-data-local: $(TARGET)
33         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
34         $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)/$(TARGET)
36 uninstall-local:
37         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
40 bin_SCRIPTS = $(WRAPPER)
42 $(WRAPPER): $(srcdir)/$(WRAPPER).in
43         sed -e "s|\@prefix\@|$(prefix)|g" -e "s|\@pkglibdir\@|$(pkglibdir)|g" -e "s|\@target\@|$(TARGET)|g" -e "s|\@gacprefix\@|$(GAC_PREFIX)|g" < $^ > $@
44         chmod +x $(WRAPPER)
46 EXTRA_DIST =                    \
47         $(CSFILES)              \
48         $(WRAPPER).in           \
49         $(RESOURCEFILES)
51 CLEANFILES =            \
52         $(TARGET)       \
53         $(TARGET).mdb   \
54         $(WRAPPER)      \
55         ImLogViewer.glade.h