From a2376d0971129312febd5782f291c98b5c45afdc Mon Sep 17 00:00:00 2001 From: Johannes 'josch' Schauer Date: Thu, 21 Dec 2017 22:38:35 +0100 Subject: Makefile: add .DELETE_ON_ERROR, .POSIX and .PHONY: locale If a target fails, delete the incomplete result. If a shell command fails, the rule fails. The locale target is not an actual file, so mark it as a phony target. --- Makefile | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 40d8268..a696e1f 100644 --- a/Makefile +++ b/Makefile @@ -17,8 +17,12 @@ # along with dudle. If not, see . # ############################################################################ +.DELETE_ON_ERROR: +.POSIX: + DOMAIN=dudle +.PHONY: locale locale: $(foreach p,$(wildcard locale/*/$(DOMAIN).po), $(addsuffix .mo,$(basename $p))) RGETTEXT=$(firstword $(shell which rgettext rxgettext)) -- cgit v1.2.3