projects
/
openwrt
/
staging
/
nbd.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Makefile: replace head call with grep's -m
[openwrt/staging/nbd.git]
/
Makefile
diff --git
a/Makefile
b/Makefile
index 3ac110367df48105695af2ff80341ba5f7c74e85..bfb52c5ddd63ee2c38d4639c5fd7226e9103667f 100644
(file)
--- a/
Makefile
+++ b/
Makefile
@@
-14,7
+14,7
@@
$(if $(findstring $(space),$(TOPDIR)),$(error ERROR: The path to the OpenWrt dir
world:
world:
-DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -E '\/usr'
| head -n
1)
+DISTRO_PKG_CONFIG:=$(shell $(TOPDIR)/scripts/command_all.sh pkg-config | grep -E '\/usr'
-m
1)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
ifneq ($(OPENWRT_BUILD),1)
export PATH:=$(TOPDIR)/staging_dir/host/bin:$(PATH)
ifneq ($(OPENWRT_BUILD),1)