dschatz
dschatz

Reputation: 1218

Automake test script dependencies

I have a test script run on make check set up like so:

TESTS = test.py

But test.py depends on another file being built. How do I specify that dependency to automake?

Upvotes: 1

Views: 455

Answers (1)

Martin Vidner
Martin Vidner

Reputation: 2337

Use a plain make dependency:

TESTS = test.py
test.py: that_other_file

that_other_file:
        echo Hi > $@     # remember to use a TAB before the action as usual

Upvotes: 2

Related Questions