* tools/Info.cs: Add --list-backends, --list-static-indexes to
[beagle.git] / ImLogViewer / Makefile.am
blob9abb61b8a48dc3a9b44d00dd943aa0ff6e1750a2
2 CSC = mcs -debug
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                \
15         ../Util/UiUtil.dll              \
16         ../images/Images.dll
18 ASSEMBLIES =                            \
19         $(BEAGLE_UI_LIBS)               \
20         $(LOCAL_ASSEMBLIES:%=-r:%)      \
21         -r:Mono.Posix
23 RESOURCEFILES =                         \
24         $(srcdir)/ImLogViewer.glade
26 # Makefile-fu to map /path/filename to -resource:/path/filename,filename
27 RESOURCES = $(join $(RESOURCEFILES:%=-resource:%,),$(notdir $(RESOURCEFILES)))
29 $(TARGET): $(CSFILES) $(LOCAL_ASSEMBLIES) $(RESOURCEFILES)
30         $(CSC) -out:$@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
32 all: $(TARGET) $(WRAPPER)
34 install-data-local: $(TARGET)
35         $(mkinstalldirs) $(DESTDIR)$(bindir)
36         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
37         $(INSTALL_DATA) $(TARGET) $(TARGET).mdb $(DESTDIR)$(pkglibdir)
38         sed -e "s|\#installed=1|installed=1|" < $(WRAPPER) > $(WRAPPER).tmp
39         $(INSTALL_SCRIPT) $(WRAPPER).tmp $(DESTDIR)$(bindir)/$(WRAPPER)
40         rm -f $(WRAPPER).tmp
42 uninstall-local:
43         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
44         rm -f $(DESTDIR)$(pkglibdir)/$(TARGET).mdb
45         rm -f $(DESTDIR)$(bindir)/$(WRAPPER)
47 $(WRAPPER): $(srcdir)/$(WRAPPER).in
48         sed -e "s|\@prefix\@|$(prefix)|g" -e "s|\@pkglibdir\@|$(pkglibdir)|g" -e "s|\@target\@|$(TARGET)|g" -e "s|\@gacprefix\@|$(GAC_PREFIX)|g" < $^ > $@
49         chmod +x $(WRAPPER)
51 EXTRA_DIST =                    \
52         $(CSFILES)              \
53         $(WRAPPER).in           \
54         $(RESOURCEFILES)
56 CLEANFILES =            \
57         $(TARGET)       \
58         $(TARGET).mdb   \
59         $(WRAPPER)      \
60         ImLogViewer.glade.h