aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorJohannes 'josch' Schauer <josch@mister-muffin.de>2017-12-21 22:38:35 +0100
committerJohannes 'josch' Schauer <josch@mister-muffin.de>2017-12-21 22:38:35 +0100
commita2376d0971129312febd5782f291c98b5c45afdc (patch)
treebb5fc0a32b324fbd6ae8027bd4dc2606c35cf9f4 /Makefile
parent44efe077405c2ed5ab7d16967cb636c85f0bf21e (diff)
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.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile4
1 files changed, 4 insertions, 0 deletions
diff --git a/Makefile b/Makefile
index 40d8268..a696e1f 100644
--- a/Makefile
+++ b/Makefile
@@ -17,8 +17,12 @@
# along with dudle. If not, see <http://www.gnu.org/licenses/>. #
############################################################################
+.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))