Just found the example Makefile laying around.

Code:
# Makefile demo.
#
# This Makefile demonstrates how to use Gnu MAKE for creating a monolithic
# pre-tokenised script from multiple source files.

# The resultant file will be called "myscript.kx", and an intermediate file
# called "myscript.kix" will be created which comprises all the source files
# catenated together.
#
# There are two source files, "demo.kix" which is in the current directory,
# and "demo.udf" which is a file containing UDFs and is stored in a UDF library
# directory.

# VPATH defines the directories to look for dependencies (source files) if *not*
# present in the current directory. We will include my UDF library directory
# for this example.
VPATH=c:\temp\KiXlib

# Copy and delete commands
COPY=COPY
DEL=DEL

# The KiXtart executable - no need to fully qualify if it is in your path.
KIX=C:\TEMP\KIX4.50\kix32.exe
# KiXtart options
KOPTS=
# Pre-tokenise flag(s)
KPRETOK=/t

# Target is the name that will be used to create the intermediate file and the
# pre-tokenised file.
TARGET=myscript

# Source file names - demo.kix is the main script, demo.udf is a UDF file in the
# UDF library
SOURCE=demo.kix demo.udf

# Default target. This is the file that we want to make.
$(TARGET).kx:

# Catenated script. This is the intermediate script, where all of the dependant files have
# been catenated into a single file in preperation for pre-tokenising.
# The foreach is a little messy, as the expansion uses *nix path semantics.
$(TARGET).kix: $(SOURCE)
$(foreach SF,$^,$(eval ALLFILES+=+ "$(subst /,\,$(SF))"))
$(COPY) nul: $(ALLFILES) "$@"

# Cleanup - remove target and intermediate
clean:
$(DEL) $(TARGET).kx $(TARGET).kix 2>NUL:

# Implicit rule for creating pre-tokenised script from .kix suffixed source
%.kx: %.kix
"$(KIX)" $(KOPTS) $(KPRETOK) "$<"

# Implicit rule for creating pre-tokenised script from .udf suffixed source
%.kx: %.udf
"$(KIX)" $(KOPTS) $(KPRETOK) "$<"