An open API service indexing awesome lists of open source software.

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

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.

![Make Log screenshot](/screenshot.png)

# 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.