[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Dynamic source file list creation using GNU make
From: |
divsorbit |
Subject: |
Dynamic source file list creation using GNU make |
Date: |
12 Apr 2006 07:40:08 -0700 |
User-agent: |
G2/0.2 |
I am trying to create a rule which similar to this using GNU make:
TESTS = \
test1\
test2\
$(TESTS): %: %.log
%.log: tb
runsim
Now, my question is can I automatically create the TESTS source list
dynamically without having to list every single test file in the
Makefile? For example using a ls command or something? That way the
test writer can create a test and put it in the test directory and just
run the make <testname> command to run the test without having to
modify and add the testname in the Makefile.
Thanks,
Div
- Dynamic source file list creation using GNU make,
divsorbit <=