Locally I'm usin GNU Make 3.8 on MacOS (i386-apple-darwin11.3.0)
I'm trying to generate a bunch of test files based on the files in a directory.
Right now I'm able to grab the basename of the files, but I cant figure out how to store them in a variable so I can generate another file with the basename
TEST_FILES = lib/*.js
build-test:
@mkdir -p tests
-@for file in $(TEST_FILES); do \
echo $$file; \
MYNAMES = $(basename $$file .js) \
echo $MYNAMES; \
done
I want to then create a bunch of files called $MYNAME.log using output from a STDOUT stream.
I'm stuck on getting the names into the variable, the solutions I've found so far are throwing errors for me when I try to implement them