find negation operator not working as expected

2012-03-28 Thread matt
I'm trying to find all the files that don't contain a string in the current directory. This incantation find . -exec grep -l "foobaz" '{}' \; will list all the files that contain "foobaz"; however, when I try to invert this using any one of these incantations find . ! -exec grep -l "foobaz" '{}

Include and change working directory in GNU make

2009-01-02 Thread Matt "strager" G.
Hello, I am using cmake to generate a Makefile for my project. However, I would like a special Makefile to generate that Makefile using cmake if it doesn't exist already. Also, I would like to send any targets (except for cmake's Makefile, of course) to cmake's Makefile. Currently I have this,