GtkSharp/gnome/Makefile.in
Mike Kestner f314da0c9f 2003-10-13 Mike Kestner <mkestner@ximian.com>
* gnome/Gnome.metadata : new xpath metadata rules
	* gnome/Makefile.in : apply metadata before generation
	* gnome/gnome-api.xml : regenerated
	* parser/gapi-fixup.cs : use XmlDocument.Save (filename)
	instead of opening a stream manually.
	* sources/Gnome.metadata : killed

svn path=/trunk/gtk-sharp/; revision=18975
2003-10-13 17:38:22 +00:00

47 lines
1.4 KiB
Makefile
Executable file

APIS= gnome-api.xml
INCLUDE_APIS = ../atk/atk-api.xml \
../pango/pango-api.xml \
../art/art-api.xml \
../gdk/gdk-api.xml \
../gdk/gdk-symbols.xml \
../gtk/gtk-api.xml \
../gtk/gtk-symbols.xml
RUNTIME=mono
MCS=mcs
ASSEMBLY=gnome-sharp.dll
@ENABLE_GNOME_TRUE@ all: $(ASSEMBLY)
@ENABLE_GNOME_FALSE@ all:
generated-stamp: $(APIS) *.custom ../generator/gapi_codegen.exe Gnome.metadata
$(RUNTIME) ../parser/gapi-fixup.exe --api=gnome-api.xml --metadata=Gnome.metadata && \
$(RUNTIME) ../generator/gapi_codegen.exe --generate $(APIS) \
--include $(INCLUDE_APIS) --outdir=generated --customdir=. \
--assembly-name=gnome-sharp && touch generated-stamp
$(ASSEMBLY): *.cs generated-stamp
$(MCS) --unsafe -nowarn:0660,0661 --target library \
-r System.Drawing -r ../glib/glib-sharp.dll \
-r ../pango/pango-sharp.dll -r ../atk/atk-sharp.dll \
-r ../art/art-sharp.dll -r ../gdk/gdk-sharp.dll \
-r ../gtk/gtk-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_GNOME_TRUE@ ../mkinstalldirs $(libdir) && \
@ENABLE_GNOME_TRUE@ for i in $(APIS); do \
@ENABLE_GNOME_TRUE@ cp $$i $(apidir) || true; \
@ENABLE_GNOME_TRUE@ done && \
@ENABLE_GNOME_TRUE@ cp $(ASSEMBLY) $(libdir)