2 CSC = mcs -debug -nowarn:0219
4 TARGET = ImLogViewer.exe
5 WRAPPER = beagle-imlogviewer
10 $(srcdir)/ImLogViewer.cs \
11 $(srcdir)/ImLogWindow.cs
18 $(LOCAL_ASSEMBLIES:%=-r:%) \
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)
32 install-data-local: $(TARGET)
33 $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
34 $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)/$(TARGET)
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" < $^ > $@