Skip to content

Commit 690b347

Browse files
committed
chore(build): Add GNU Make conveniences
1 parent 94cbd3f commit 690b347

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

Makefile

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,18 @@
11
PACKAGE = fluent
2+
3+
SHELL := zsh
4+
.SHELLFLAGS := +o nomatch -e -c
5+
6+
.ONESHELL:
7+
.SECONDEXPANSION:
8+
.SECONDARY:
9+
.PRECIOUS:
10+
.DELETE_ON_ERROR:
11+
.SUFFIXES:
12+
13+
JOBS ?= $(shell nproc 2>- || sysctl -n hw.ncpu 2>- || echo 1)
14+
MAKEFLAGS += -j$(JOBS) -Otarget
15+
216
VERSION != git describe --tags --all --abbrev=7 | sed 's/-/-r/'
317
SEMVER != git describe --tags | sed 's/^v//;s/-.*//'
418
ROCKREV = 0
@@ -51,3 +65,8 @@ check:
5165
.PHONY: test
5266
test:
5367
busted
68+
69+
.PHONY: force
70+
force:;
71+
72+
$(MAKEFILE_LIST):;

0 commit comments

Comments
 (0)