4 TARGET = ImLogViewer.exe
5 WRAPPER = beagle-imlogviewer
10 $(srcdir)/ImLogViewer.cs \
11 $(srcdir)/ImLogWindow.cs
20 $(LOCAL_ASSEMBLIES:%=-r:%) \
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)
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" < $^ > $@