2005-04-19 Gabor Kelemen <kelemeng@gnome.hu>
[beagle.git] / ImLogViewer / Makefile.am
blob67f0fcbf2428234b8e1b56d080d28fd30e026064
2 CSC = mcs -g
4 TARGET = ImLogViewer.exe
5 WRAPPER = beagle-imlogviewer
7 CSFLAGS = -target:exe
9 CSFILES =                               \
10         $(srcdir)/ImLogViewer.cs
12 LOCAL_ASSEMBLIES =                      \
13         ../Util/Util.dll
15 ASSEMBLIES =                            \
16         $(BEAGLE_UI_LIBS)               \
17         $(LOCAL_ASSEMBLIES:%=-r:%)      \
18         -r:Mono.Posix
20 RESOURCEFILES =                         \
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)
29 all: $(TARGET)
31 install-data-local: $(TARGET)
32         $(mkinstalldirs) $(DESTDIR)$(pkglibdir)
33         $(INSTALL_DATA) $(TARGET) $(DESTDIR)$(pkglibdir)/$(TARGET)
35 uninstall-local:
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" < $^ > $@
43         chmod +x $(WRAPPER)
45 EXTRA_DIST =                    \
46         $(CSFILES)              \
47         $(WRAPPER).in           \
48         $(RESOURCEFILES)
50 CLEANFILES =            \
51         $(TARGET)       \
52         $(TARGET).mdb   \
53         $(WRAPPER)