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 19:54:14 +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:
You need to create a phony target that does both; builds `test', creates
`myfile', and perhaps runs it.

What about something like:

TESTS = my-test
.PHONY: my-test
check_PROGRAMS = test
test_SOURCES = test.cpp

my-test: test$(EXEEXT) myfile
        ./test -f myfile

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






reply via email to

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