Make qmake just run arbitrary shell command then finish?
Hi
I have a subdirs build, and in one subdir I just want to run an arbitrary shell script. No compiling, it would be just a *really* simple makefile. How can I do this?
FYI This question is academic. I'm testing how subdirs works and I just want test stubs that succeed and print "~Hello", instead of telling me they can't find a main()... Still it might be useful too.
Thanks.
Re: Make qmake just run arbitrary shell command then finish?
Re: Make qmake just run arbitrary shell command then finish?
I figured out a couple of solutions. At first I tried this:
TARGET = foo
foo.commands = echo foo
Which seem logical to me but does not override the built-in auto generated target rules. Its seems qmake stubbornly refuses to not to be a compiler of stuff - which is quite annoying. But this gets around it, just printing a warning:
TARGET = foo
foo.commands = echo foo
QMAKE_EXTRA_TARGETS += foo
You could also use
REQUIRES = VARIABLE_THAT_DNE
to make the qmake succeed with a warningn message.