30.2. Guidelines for Make Rule Authors

The code that goes into a make rule implementation file, preplugin.mk, or plugin.mk file is regular GNU Make code. There are certain practices that you should follow when writing GNU Make code for use within abuild. A good way to learn about writing rules for abuild is to study existing rules. Here we will briefly list some things that rules authors must keep in mind:



[61] In abuild 1.0, user-supplied clean targets were run when abuild was invoked from inside an output directory, but this turned out not to be particularly useful or reliable. The practice of having clean targets simply remove output directories seems to have emerged as a best practice in the community anyway.