Mailing List Archive


[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[tlug] make and wildcards



I'm adding a new rule to a makefile to syntax-check a set of files
(actionscript):

strict: *.as
	mtasc -strict -version 7 -cp /path/to/classpath *.as

The problem is I want to exclude one file ("Sloppy.as"), as it won't
pass the "-strict" check. My first instinct is to move the problem file
to another directory, but that forces me to impose more structure on the
project. It is the correct solution long-term, but I'm wondering if
there are some easier short-term solutions.

Idea Two was to explicitly list all the files that should pass. I don't
like the maintenance implications.

I wondered if there is a clever makefile solution to this? E.g.
something like this in pseudo-code:

FILES = *.as
FILES -= Sloppy.as

strict: $(FILES)
	mtasc -strict -version 7 -cp /path/to/classpath $(FILES)

What would you do?

Darren


Home | Main Index | Thread Index

Home Page Mailing List Linux and Japan TLUG Members Links