X-Git-Url: https://git.ladys.computer/Yseme/blobdiff_plain/8a2cc5576e57c0097b434d9c2a706fc856e2ed3e..f6ab0225fdd5a404fbd592b0d5c051f0cbea4135:/GNUmakefile?ds=sidebyside diff --git a/GNUmakefile b/GNUmakefile index e07079b..9f17dbc 100644 --- a/GNUmakefile +++ b/GNUmakefile @@ -5,16 +5,10 @@ SHELL = /bin/sh # This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. # If a copy of the M·P·L was not distributed with this file, You can obtain one at . -BUILDTARGET := .grass -DESTDIR := . - -CLIENTCHARSET := utf-8-mac -SERVER := computer -SERVERCHARSET := utf-8 -SERVERPATH := $(notdir $(abspath .)) - AWK := awk ECHO := echo +GREP := grep +ICONV := iconv SED := sed TEST := test @@ -29,6 +23,14 @@ RSYNCFILTER := .rsync-filter endif RSYNCOPTS := --checksum --compress --del --links --omit-dir-times --prune-empty-dirs --recursive --times --verbose +BUILDTARGET := .grass +DESTDIR := . + +CLIENTCHARSET := $(if $(shell $(ICONV) -l | $(GREP) -i 'utf-8-mac' - || true),utf-8-mac,utf-8) +SERVER := computer +SERVERCHARSET := utf-8 +SERVERPATH := $(notdir $(abspath .)) + override comma := , ifneq ($(wildcard $(BUILDTARGET)),)