4 TARGET = ImLogViewer.exe
5 WRAPPER = beagle-imlogviewer
10 $(srcdir)/ImLogViewer.cs
17 $(LOCAL_ASSEMBLIES:%=-r:%) \
21 $(srcdir)/ImLogViewer.glade
23 # Makefile-fu to map /path/filename to -resource:/path/filename,filename
24 RESOURCES = $(join $(RESOURCEFILES:%=-resource:%,),$(notdir $(RESOURCEFILES)))
26 $(TARGET): $(CSFILES) $(LOCAL_ASSEMBLIES) $(RESOURCEFILES)
27 $(CSC) -o $@ $(CSFLAGS) $(CSFILES) $(ASSEMBLIES) $(RESOURCES)
31 install-data-local: $(TARGET)
32 $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
33 $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)/$(TARGET)
36 rm -f $(DESTDIR)$(pkglibdir)/$(TARGET)
39 bin_SCRIPTS = $(WRAPPER)
41 $(WRAPPER): $(srcdir)/$(WRAPPER).in
42 sed -e "s|\@prefix\@|$(prefix)|g" -e "s|\@pkglibdir\@|$(pkglibdir)|g" -e "s|\@target\@|$(TARGET)|g" -e "s|\@gacprefix\@|$(GAC_PREFIX)|g" < $^ > $@