Dont reindex already indexed files. Yet another bug uncovered by the DateTime fixes.
[beagle.git] / ImLogViewer / Makefile.am
blob76aee107db6d6055cc89e601e4f1682389744a14
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                                     \
49         -e "s|\@prefix\@|$(prefix)|g"           \
50         -e "s|\@pkglibdir\@|$(pkglibdir)|g"     \
51         -e "s|\@target\@|$(TARGET)|g"           \
52         -e "s|\@gacprefix\@|$(GAC_PREFIX)|g"    \
53         -e "s|\@bash\@|$(BASH)|"                \
54         < $^ > $@
55         chmod +x $(WRAPPER)
57 EXTRA_DIST =                    \
58         $(CSFILES)              \
59         $(WRAPPER).in           \
60         $(RESOURCEFILES)
62 CLEANFILES =            \
63         $(TARGET)       \
64         $(TARGET).mdb   \
65         $(WRAPPER)      \
66         ImLogViewer.glade.h