summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-05-01 12:18:39 +0200
committerAbdoulaye Walsimou Gaye <awg@embtoolkit.org>2011-05-01 12:18:39 +0200
commit88e4d68ddef75c37fde403fbafed57f031cef252 (patch)
treedd31259984eec02d5d45b8e126decfd59019d711 /Makefile
parent0c61e796a6a1671afe1e0fa9891163129ef8fc62 (diff)
downloadembtoolkit-88e4d68ddef75c37fde403fbafed57f031cef252.tar.gz
embtoolkit-88e4d68ddef75c37fde403fbafed57f031cef252.tar.bz2
embtoolkit-88e4d68ddef75c37fde403fbafed57f031cef252.tar.xz
Build system: set PKG_CONFIG_PATH for menuconfig and xconfig
This avoids use of PKG_CONFIG_PATH set for target. Signed-off-by: Abdoulaye Walsimou Gaye <awg@embtoolkit.org>
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile15
1 files changed, 11 insertions, 4 deletions
diff --git a/Makefile b/Makefile
index 21ab6ed..68bea60 100644
--- a/Makefile
+++ b/Makefile
@@ -80,23 +80,30 @@ All: $(EMBTK_BUILD)
xconfig: basic
ifeq ($(CONFIG_EMBTK_DOTCONFIG),y)
- $(Q)make -f scripts/Makefile.build obj=scripts/kconfig xconfig
+ $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \
+ make -f scripts/Makefile.build obj=scripts/kconfig xconfig
else
@if [ -e $(EMBTK_ROOT)/.config.old ]; then \
cp $(EMBTK_ROOT)/.config.old $(EMBTK_ROOT)/.config; \
+ PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \
make -f scripts/Makefile.build obj=scripts/kconfig xconfig; \
else \
+ PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \
make -f scripts/Makefile.build obj=scripts/kconfig xconfig; \
fi
endif
menuconfig: basic
- $(Q)make -f scripts/Makefile.build obj=scripts/kconfig menuconfig
+ $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \
+ make -f scripts/Makefile.build obj=scripts/kconfig menuconfig
+
randconfig: basic
- $(Q)make -f scripts/Makefile.build obj=scripts/kconfig randconfig
+ $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \
+ make -f scripts/Makefile.build obj=scripts/kconfig randconfig
basic:
- $(Q)make -f scripts/Makefile.build obj=scripts/basic
+ $(Q)PKG_CONFIG_PATH=/lib/pkgconfig:/usr/lib/pkgconfig:/usr/local/lib/pkgconfig \
+ make -f scripts/Makefile.build obj=scripts/basic
clean: rmallpath
$(Q)make -f scripts/Makefile.clean obj=scripts/kconfig