At 05:02 PM 11/5/2002 -0800, you wrote:
Hello everyone,
I am new here. I have a question about makefile.
I have a bunch of .py files in a directory. I want to
write a make file just to run each of them one at a
time. So what I want to do is something like:
for each .py file in the current directory,
python something.py

How to write a makefile for it? Thanks
PYTHON:=/path/to/python
FILES:=$(wildcard *.py)
.PHONY: $(FILES)
run: $(FILES) ;

$(FILES):
        @$(PYTHON) $@



_______________________________________________
Help-make mailing list
[EMAIL PROTECTED]
http://mail.gnu.org/mailman/listinfo/help-make

Reply via email to