linux - piping with make dosen't work -
i'm quite new make, , tried create phony target print targets:
.phony: help: $(make) --print-data-base --question | \ $(awk) '/^[^.%][-a-za-z0-9_]*:/ { print substr($$1, 1, length($$1)-1) }' | \ $(sort) | \ $(pr) --omit-pagination --width=80 --columns=4
the code taken here (page 20).
when run make help
following:
make --print-data-base --question | \ '/^[^.%][-a-za-z0-9_]*:/ { print substr($1, 1, length($1)-1) }' | \ | \ --omit-pagination --width=80 --columns=4 /bin/sh: 3: syntax error: "|" unexpected make: *** [help] error 2
what's wrong , how can fix it?
i'm working on linux mint, make 3.81 built i686-pc-linux-gnu.
it looks $(awk)
, $(sort)
, , $(pr)
expanding empty string, means no such variables defined in makefile.
Comments
Post a Comment