GtkSharp/gda/Makefile.in
Urs C. Muff c8d505e7ca Change the missed ones as well...
svn path=/trunk/gtk-sharp/; revision=23882
2004-03-10 16:14:06 +00:00

39 lines
1 KiB
Makefile
Executable file

APIS= gda-api.xml
RUNTIME=@MONO@
MCS=mcs
ASSEMBLY=gda-sharp.dll
@ENABLE_GDA_TRUE@ all: $(ASSEMBLY)
@ENABLE_GDA_FALSE@ all:
all: $(ASSEMBLY)
generated-stamp: $(APIS) ../generator/gapi_codegen.exe Gda.metadata
$(RUNTIME) ../parser/gapi-fixup.exe --api=gda-api.xml --metadata=Gda.metadata && \
$(RUNTIME) ../generator/gapi_codegen.exe \
--generate $(APIS) --outdir=generated --customdir=. \
--assembly-name=gda-sharp && touch generated-stamp
$(ASSEMBLY): generated-stamp *.cs
$(MCS) --unsafe --target library \
-r ../glib/glib-sharp.dll -o $(ASSEMBLY) --recurse '*.cs'
clean:
rm -f generated-stamp
rm -f $(ASSEMBLY)
rm -rf generated
prefix=@prefix@
DESTDIR=
apidir=$(DESTDIR)$(prefix)/share/gapi
libdir=$(DESTDIR)$(prefix)/lib
install: all
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(libdir) && \
@ENABLE_GDA_TRUE@ ../mkinstalldirs $(apidir) && \
@ENABLE_GDA_TRUE@ for i in $(APIS); do \
@ENABLE_GDA_TRUE@ cp $$i $(apidir) || true; \
@ENABLE_GDA_TRUE@ done && \
@ENABLE_GDA_TRUE@ cp $(ASSEMBLY) $(libdir)