one input producing multiple ouput

Jack Andrews <[email protected]> Mon, 19 Feb 2018 16:44:58 +1100
Newsgroups gmane.comp.gnu.m4.general
Message-ID <CAJvHTNy2pz26QehO7Uiq8pT2GEVciatwFHQA3N=dQoXjfNvWKw@mail.gmail.com>
i need to produce multiple files from one input file.
i have a single source file (xyz) from which i want to produce a xyz.h
header file, a xyz.c source file and a xyz.k source file - all based on the
one input file, xyz.
is the answer to do this in multiple passes with different sets of macros?