Previous: , Up: Miscellaneous Rules   [Contents][Index]


16.2 Handling new file extensions

It is sometimes useful to introduce a new implicit rule to handle a file type that Automake does not know about. If this is done, you must notify GNU Make of the new suffixes. This can be done by putting a list of new suffixes in the SUFFIXES variable.

For instance, currently Automake does not provide any Java support. If you wrote a macro to generate ‘.class’ files from ‘.java’ source files, you would also need to add these suffixes to the list:

SUFFIXES = .java .class