mirror of
https://github.com/tahoe-lafs/tahoe-lafs.git
synced 2025-02-06 11:10:22 +00:00
build(make): Defensive make settings
https://tech.davis-hansson.com/p/make/ Prevents things like silent shell pipeline errors in recipes, unexpected behavior from undefined variables, etc.
This commit is contained in:
parent
4bf79f777e
commit
7a3320f4bb
10
Makefile
10
Makefile
@ -1,6 +1,16 @@
|
|||||||
|
|
||||||
# NOTE: this Makefile requires GNU make
|
# NOTE: this Makefile requires GNU make
|
||||||
|
|
||||||
|
### Defensive settings for make:
|
||||||
|
# https://tech.davis-hansson.com/p/make/
|
||||||
|
SHELL := bash
|
||||||
|
.ONESHELL:
|
||||||
|
.SHELLFLAGS := -xeu -o pipefail -c
|
||||||
|
.SILENT:
|
||||||
|
.DELETE_ON_ERROR:
|
||||||
|
MAKEFLAGS += --warn-undefined-variables
|
||||||
|
MAKEFLAGS += --no-builtin-rules
|
||||||
|
|
||||||
default:
|
default:
|
||||||
@echo "no default target"
|
@echo "no default target"
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user