diff options
author | Michael Hutchinson <mhutchinson@novell.com> | 2011-02-16 01:58:45 +0300 |
---|---|---|
committer | Michael Hutchinson <mhutchinson@novell.com> | 2011-02-16 01:58:45 +0300 |
commit | 782f8b8b432c0e96ef59c687a771582e677e2818 (patch) | |
tree | e504fb8fad8fdec7b539cdee7d60452634faa5e3 /Makefile | |
parent | 79705261523f1bfcaafdd8970a7dbe0c7dc2a49d (diff) |
Use libs in $prefix for build and run
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 6 |
1 files changed, 4 insertions, 2 deletions
@@ -9,7 +9,9 @@ include $(top_srcdir)/config.make CONFIG_MAKE=$(top_srcdir)/config.make %-recursive: $(CONFIG_MAKE) - @set . $$MAKEFLAGS; final_exit=:; \ + @export PKG_CONFIG_PATH="`pwd`/$(top_srcdir)/local-config:$(prefix)/lib/pkgconfig:$(prefix)/share/pkgconfig:$$PKG_CONFIG_PATH"; \ + export MONO_GAC_PREFIX="$(prefix)/lib/pkgconfig:$(prefix)/share/pkgconfig:$$MONO_GAC_PREFIX"; \ + set . $$MAKEFLAGS; final_exit=:; \ case $$2 in --unix) shift ;; esac; \ case $$2 in *=*) dk="exit 1" ;; *k*) dk=: ;; *) dk="exit 1" ;; esac; \ for dir in $(SUBDIRS); do \ @@ -21,7 +23,7 @@ CONFIG_MAKE=$(top_srcdir)/config.make $$final_exit $(CONFIG_MAKE): $(top_srcdir)/configure - @if test -e "$(CONFIG_MAKE)"; then exec $(top_srcdir)/configure; \ + @if test -e "$(CONFIG_MAKE)"; then exec $(top_srcdir)/configure --prefix=$(prefix); \ else \ echo "You must run configure first"; \ exit 1; \ |