GtkSharp/glade/Makefile.in
Mike Kestner bba2334f84 2004-02-12 Mike Kestner <mkestner@ximian.com>
* glade/Glade.metadata : hide a GList method.
	* glade/Makefile.in : run gapi-fixup
	* glade/XML.custom : return Widget[] from GetWidgetPrefix.
	* glade/glade-api.xml : regen
	* pango/Pango.metadata : hide a dubious GList method.
	* pango/pango-api.xml : regen

svn path=/trunk/gtk-sharp/; revision=23043
2004-02-12 21:40:01 +00:00

46 lines
1.4 KiB
Makefile
Executable file

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