mirror of
https://github.com/RGBCube/uutils-coreutils
synced 2025-07-27 19:17:43 +00:00
also install the locales
This commit is contained in:
parent
91a6209699
commit
1e33e535ce
1 changed files with 28 additions and 2 deletions
30
GNUmakefile
30
GNUmakefile
|
@ -5,6 +5,7 @@ PROFILE ?= debug
|
||||||
MULTICALL ?= n
|
MULTICALL ?= n
|
||||||
COMPLETIONS ?= y
|
COMPLETIONS ?= y
|
||||||
MANPAGES ?= y
|
MANPAGES ?= y
|
||||||
|
LOCALES ?= y
|
||||||
INSTALL ?= install
|
INSTALL ?= install
|
||||||
ifneq (,$(filter install, $(MAKECMDGOALS)))
|
ifneq (,$(filter install, $(MAKECMDGOALS)))
|
||||||
override PROFILE:=release
|
override PROFILE:=release
|
||||||
|
@ -300,7 +301,7 @@ else
|
||||||
endif
|
endif
|
||||||
endif
|
endif
|
||||||
|
|
||||||
build-coreutils:
|
build-coreutils: locales
|
||||||
${CARGO} build ${CARGOFLAGS} --features "${EXES} $(BUILD_SPEC_FEATURE)" ${PROFILE_CMD} --no-default-features
|
${CARGO} build ${CARGOFLAGS} --features "${EXES} $(BUILD_SPEC_FEATURE)" ${PROFILE_CMD} --no-default-features
|
||||||
|
|
||||||
build: build-coreutils build-pkgs
|
build: build-coreutils build-pkgs
|
||||||
|
@ -396,7 +397,32 @@ else
|
||||||
install-completions:
|
install-completions:
|
||||||
endif
|
endif
|
||||||
|
|
||||||
install: build install-manpages install-completions
|
ifeq ($(LOCALES),y)
|
||||||
|
locales:
|
||||||
|
$(foreach prog, $(INSTALLEES), \
|
||||||
|
if [ -d "$(BASEDIR)/src/uu/$(prog)/locales" ]; then \
|
||||||
|
mkdir -p "$(BUILDDIR)/locales/$(prog)"; \
|
||||||
|
for locale_file in "$(BASEDIR)"/src/uu/$(prog)/locales/*.ftl; do \
|
||||||
|
$(INSTALL) -v "$$locale_file" "$(BUILDDIR)/locales/$(prog)/"; \
|
||||||
|
done; \
|
||||||
|
fi $(newline) \
|
||||||
|
)
|
||||||
|
|
||||||
|
|
||||||
|
install-locales:
|
||||||
|
$(foreach prog, $(INSTALLEES), \
|
||||||
|
if [ -d "$(BASEDIR)/src/uu/$(prog)/locales" ]; then \
|
||||||
|
mkdir -p "$(DESTDIR)$(DATAROOTDIR)/locales/$(prog)"; \
|
||||||
|
for locale_file in "$(BASEDIR)"/src/uu/$(prog)/locales/*.ftl; do \
|
||||||
|
$(INSTALL) -v "$$locale_file" "$(DESTDIR)$(DATAROOTDIR)/locales/$(prog)/"; \
|
||||||
|
done; \
|
||||||
|
fi $(newline) \
|
||||||
|
)
|
||||||
|
else
|
||||||
|
install-locales:
|
||||||
|
endif
|
||||||
|
|
||||||
|
install: build install-manpages install-completions install-locales
|
||||||
mkdir -p $(INSTALLDIR_BIN)
|
mkdir -p $(INSTALLDIR_BIN)
|
||||||
ifeq (${MULTICALL}, y)
|
ifeq (${MULTICALL}, y)
|
||||||
$(INSTALL) $(BUILDDIR)/coreutils $(INSTALLDIR_BIN)/$(PROG_PREFIX)coreutils
|
$(INSTALL) $(BUILDDIR)/coreutils $(INSTALLDIR_BIN)/$(PROG_PREFIX)coreutils
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue