A comprehensive syntax highlighting file for GNU Make and Makefile documents, designed specifically for the MT Manager text editor. This definition brings accurate, desktop‑grade syntax coloring to Makefiles on your Android device.
- Targets & Prerequisites: Target names, pattern rules (with
%wildcard), and prerequisite separation. - Variables:
- Variable definitions (
varDef) and references (varRef) with distinct colors. - All assignment operators:
=,:=,::=,+=,?=,!=. - Substitution references:
$(VAR:old=new).
- Variable definitions (
- Automatic Variables:
$@,$<,$^,$*,$+,$?,$|,$%and theirD/Fvariants. - Built‑in Functions:
$(subst ...),$(shell ...),$(wildcard ...),$(intcmp ...),$(let ...), and many others. - Directives:
define/endefblocks.- Conditional directives:
ifeq,ifneq,ifdef,ifndef,else,endif. - Inclusion directives:
include,-include,sinclude. - Export/unexport,
override,vpath,undefine,private.
- Recipe Elements:
- Recipe prefix flags:
@,-,+. - Shell logical operators:
&&,||. - Shell variables:
$$HOME,$$(VAR).
- Recipe prefix flags:
- Comments: Comment highlighting with TODO/
FIXME/NOTE/XXX/BUG/HACKmarkers. - Special Targets: Distinct styling for
.PHONY,.ONESHELL,.DELETE_ON_ERROR, and many other built‑in targets. - Literals: Strings (with escape sequences), numbers (decimal, hex, floating‑point, scientific notation), and line continuations.
- Optimized Readability: Carefully hand‑picked colors for both light and dark themes.
- Download the latest release archive (
makefile-v[version].zipormakefile-v[version].tar.gz) from the Releases page. - Extract the archive using a file manager (e.g., MT Manager, ZArchiver).
- Open the extracted
makefile.mtsxfile with MT Manager. - Tap the Install button when prompted.
- Open any
Makefile,makefile,GNUmakefile,.mk, or.makfile to see the syntax highlighting applied.
Note: For files without an extension (e.g.,Makefile), you may need to manually select the syntax via the editor menu (three dots > Syntax > Makefile).
We welcome improvements and bug reports. If you encounter any missing tokens or wish to enhance the color scheme, please refer to our Contribution Guidelines and feel free to open a Pull Request or Issue.
This project is licensed under the MIT License. You are free to use, modify, and distribute this work, even commercially, provided that the original copyright and license notice are included.











