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

Popular posts from this blog

android - getbluetoothservice() called with no bluetoothmanagercallback -

sql - ASP.NET SqlDataSource, like on SelectCommand -

ios - Undefined symbols for architecture armv7: "_OBJC_CLASS_$_SSZipArchive" -