Define jmake macros to produce rules for generic files and test targets.
There is now one hard-linked file from if/gen in lib/ which must be ignored.