hoelzro/linotify — pull request #5 by craigbarnes (2012-09-20 16:34:45+00:00)
Title: Make pkg-config output more readable when building

I get the following output when building:

```
cc -o linotify.o -c linotify.c `sh -c "pkg-config \`pkg-config --list-all | grep Lua | awk '{print $1}'\` --cflags"` -fPIC -O3 -Wall
usage: lua [options] [script [args]].
Available options are:
-e stat execute string 'stat'
-l name require library 'name'
-i enter interactive mode after executing 'script'
-v show version information
-- stop handling options
- execute stdin and stop handling options
cc -o inotify.so -shared linotify.o -shared -fomit-frame-pointer
```

Not sure what's happening there but it doesn't seem right.

I tried changing all the interpolated `pkg-config` commands to use Make functions instead, which seems to fix it and as a nice side-effect, displays the actual pkg-config output when building:

```
cc -o linotify.o -c linotify.c -fPIC -O3 -Wall -I/usr/include/luajit-2.0
cc -o inotify.so -shared linotify.o -shared -fomit-frame-pointer
```

...but it may not be portable to non-GNU Make though.