https://github.com/catvec/make-log
A simple log function for Make
https://github.com/catvec/make-log
Last synced: 3 days ago
JSON representation
A simple log function for Make
- Host: GitHub
- URL: https://github.com/catvec/make-log
- Owner: catvec
- License: mit
- Created: 2017-04-04T15:47:50.000Z (almost 9 years ago)
- Default Branch: master
- Last Pushed: 2017-09-27T23:49:20.000Z (over 8 years ago)
- Last Synced: 2025-09-17T22:35:34.861Z (6 months ago)
- Language: Makefile
- Size: 10.7 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
Project Status: Complete | Maintaining
# Table Of Contents
- [Overview](#overview)
- [Usage](#usage)
# Overview
This repository provides a simple log function that can be used in Makefiles.
It provides 3 log levels: ok, warn, and error. These levels are printed in:
green, yellow, and red respectively.

# Usage
Since this function doesn't really change it is easiest to download the `make-log.mk` file and copy its contents into your Makefile.
Please add a little comment above it telling people where you got it.
Then call it like so:
```Makefile
$(call log,level,message)
```
Where level can be `ok`, `warn`, or `error` and message can be an message.