automake
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to specify additional dependencies of files


From: Daniel Kraft
Subject: Re: How to specify additional dependencies of files
Date: Mon, 10 Apr 2006 21:12:01 +0000
User-agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8.0.1) Gecko/20060308 SeaMonkey/1.0

Stepan Kasal wrote:
This gives me
./my-test: command not found
as automake seems to prepend every test with ./ (to make it be run by
the shell).

Oops, I apologize for my mistake.

So it seems you need a wrapper script:

TESTS = my-test
check_PROGRAMS = test
test_SOURCES = test.cpp
my-test: test$(EXEEXT)
        ...commands to create myfile and create/touch my-test wrapper

(Actually, the above example contains a redundancy, because all
check_PROGRAMS are built before the TESTS are run.
So either the prerequisite test$(EXEEXT) can be deleted, or
check_PROGRAMS can be changed to EXTRA_PROGRAMS.)

Hope my advices help you to find the solution, though they contain
errors.  ;-)

Thank you, that seems to work so far!





reply via email to

[Prev in Thread] Current Thread [Next in Thread]