.mk Makefile build file

Text & source code

MIME typetext/x-makefile
DescriptionMakefile build file
CategoryText & source code
Signature (magic bytes)23 21 20 2F 75 73 72 2F 62 69 6E 2F 6D 61 6B 65 (#! /usr/bin/make)
23 21 2F 75 73 72 2F 62 69 6E 2F 6D 61 6B 65 (#!/usr/bin/make)
Based ontext/plain
Other extensions.mak

Frequently asked questions

What is a .mk file?

A .mk file is a “Makefile build file” (MIME type text/x-makefile).

How do I open a .mk file?

With any text editor – Notepad++, Visual Studio Code, or gedit and vim on Linux. The file contains readable text, possibly source code or configuration.

How can you tell a genuine .mk file?

By the bytes at the start of the file, the signature (magic bytes): 23 21 20 2F 75 73 72 2F 62 69 6E 2F 6D 61 6B 65 (#! /usr/bin/make) and 23 21 2F 75 73 72 2F 62 69 6E 2F 6D 61 6B 65 (#!/usr/bin/make). On Linux and macOS, file --mime-type example.mk checks the real type regardless of the extension.

Which format is .mk based on?

Technically a .mk file is a subtype of “Plain text document” (text/plain), so programs for that base format can often read it too.

Which MIME type belongs to .mk?

The MIME type is text/x-makefile. In the Apache web server: AddType text/x-makefile .mk; in nginx: types { text/x-makefile mk; }.

Nearby entries