* Makefile.am:
[monodevelop.git] / extras / GeckoWebBrowser / GeckoWebBrowser.make
blobad4917fa34f7f53f2b52c2973587d2ef588f991d
3 # Warning: This is an automatically generated file, do not edit!
5 srcdir=.
6 top_srcdir=.
8 include $(top_srcdir)/Makefile.include
9 include $(top_srcdir)/config.make
11 ifeq ($(CONFIG),DEBUG)
12 ASSEMBLY_COMPILER_COMMAND = gmcs
13 ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+ -debug -define:DEBUG
14 ASSEMBLY = build/MonoDevelop.GeckoWebBrowser.dll
15 ASSEMBLY_MDB = $(ASSEMBLY).mdb
16 COMPILE_TARGET = library
17 PROJECT_REFERENCES =
18 BUILD_DIR = build
21 endif
23 ifeq ($(CONFIG),RELEASE)
24 ASSEMBLY_COMPILER_COMMAND = gmcs
25 ASSEMBLY_COMPILER_FLAGS = -noconfig -codepage:utf8 -warn:4 -optimize+
26 ASSEMBLY = build/MonoDevelop.GeckoWebBrowser.dll
27 ASSEMBLY_MDB =
28 COMPILE_TARGET = library
29 PROJECT_REFERENCES =
30 BUILD_DIR = build
33 endif
35 INSTALL_DIR = $(DESTDIR)$(prefix)/lib/monodevelop/AddIns/GeckoWebBrowser
37 LINUX_PKGCONFIG = \
38 $(GECKOWEBBROWSER_PC)
42 GECKOWEBBROWSER_PC = $(BUILD_DIR)/monodevelop-geckowebbrowser.pc
45 FILES = \
46 AssemblyInfo.cs \
47 GeckoWebBrowser.cs \
48 GeckoWebBrowserLoader.cs \
49 gtk-gui/generated.cs
51 DATA_FILES =
53 RESOURCES = \
54 gtk-gui/gui.stetic \
55 MonoDevelop.WebBrowsers.GeckoWebBrowser.addin.xml
57 EXTRAS = \
58 ChangeLog \
59 monodevelop-geckowebbrowser.pc.in
61 REFERENCES = \
62 Mono.Posix \
63 -pkg:gecko-sharp-2.0 \
64 -pkg:glib-sharp-2.0 \
65 -pkg:gtk-sharp-2.0 \
66 -pkg:monodevelop
68 DLL_REFERENCES =
70 CLEANFILES += $(LINUX_PKGCONFIG)
72 #Targets
73 all-local: $(ASSEMBLY) $(LINUX_PKGCONFIG) $(top_srcdir)/config.make
75 $(GECKOWEBBROWSER_PC): monodevelop-geckowebbrowser.pc
76 mkdir -p $(BUILD_DIR)
77 cp '$<' '$@'
81 monodevelop-geckowebbrowser.pc: monodevelop-geckowebbrowser.pc.in $(top_srcdir)/config.make
82 sed -e "s,@prefix@,$(prefix)," -e "s,@PACKAGE@,$(PACKAGE)," < monodevelop-geckowebbrowser.pc.in > monodevelop-geckowebbrowser.pc
85 $(build_xamlg_list): %.xaml.g.cs: %.xaml
86 xamlg '$<'
88 $(build_resx_resources) : %.resources: %.resx
89 resgen2 '$<' '$@'
91 LOCAL_PKGCONFIG=PKG_CONFIG_PATH=../../local-config:$$PKG_CONFIG_PATH
93 $(ASSEMBLY) $(ASSEMBLY_MDB): $(build_sources) $(build_resources) $(build_datafiles) $(DLL_REFERENCES) $(PROJECT_REFERENCES) $(build_xamlg_list)
94 make pre-all-local-hook prefix=$(prefix)
95 mkdir -p $(dir $(ASSEMBLY))
96 make $(CONFIG)_BeforeBuild
97 $(LOCAL_PKGCONFIG) $(ASSEMBLY_COMPILER_COMMAND) $(ASSEMBLY_COMPILER_FLAGS) -out:$(ASSEMBLY) -target:$(COMPILE_TARGET) $(build_sources_embed) $(build_resources_embed) $(build_references_ref)
98 make $(CONFIG)_AfterBuild
99 make post-all-local-hook prefix=$(prefix)
102 install-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GECKOWEBBROWSER_PC)
103 make pre-install-local-hook prefix=$(prefix)
104 mkdir -p $(INSTALL_DIR)
105 cp $(ASSEMBLY) $(ASSEMBLY_MDB) $(INSTALL_DIR)
106 mkdir -p $(DESTDIR)$(prefix)/lib/pkgconfig
107 test -z '$(GECKOWEBBROWSER_PC)' || cp $(GECKOWEBBROWSER_PC) $(DESTDIR)$(prefix)/lib/pkgconfig
108 make post-install-local-hook prefix=$(prefix)
110 uninstall-local: $(ASSEMBLY) $(ASSEMBLY_MDB) $(GECKOWEBBROWSER_PC)
111 make pre-uninstall-local-hook prefix=$(prefix)
112 rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY))
113 test -z '$(ASSEMBLY_MDB)' || rm -f $(INSTALL_DIR)/$(notdir $(ASSEMBLY_MDB))
114 test -z '$(GECKOWEBBROWSER_PC)' || rm -f $(DESTDIR)$(prefix)/lib/pkgconfig/$(notdir $(GECKOWEBBROWSER_PC))
115 make post-uninstall-local-hook prefix=$(prefix)