forked from ProcursusTeam/Procursus
-
Notifications
You must be signed in to change notification settings - Fork 0
/
gettext-localizations.mk
35 lines (28 loc) · 1.29 KB
/
gettext-localizations.mk
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
ifneq ($(PROCURSUS),1)
$(error Use the main Makefile)
endif
SUBPROJECTS += gettext-localizations
GETTEXT-LOCALIZATIONS_VERSION := 2020.07.27
DEB_GETTEXT-LOCALIZATIONS_V ?= $(GETTEXT-LOCALIZATIONS_VERSION)
ifneq ($(wildcard $(BUILD_WORK)/gettext-localizations/.build_complete),)
gettext-localizations:
@echo "Using previously built gettext-localizations."
else ifeq ($(shell [ $(UNAME) = Darwin ] && [ -f "/System/Library/Kernels/kernel" ] && echo 1),1)
gettext-localizations: setup
mkdir -p $(BUILD_STAGE)/gettext-localizations/usr/share
cp -af /usr/share/locale $(BUILD_STAGE)/gettext-localizations/usr/share
rm -f $(BUILD_STAGE)/gettext-localizations/usr/share/locale/locale.alias
else
gettext-localizations:
@echo "Please make gettext-localizations from a Mac."
endif
gettext-localizations-package: gettext-localizations-stage
# gettext-localizations.mk Package Structure
rm -rf $(BUILD_DIST)/gettext-localizations
# gettext-localizations.mk Prep gettext-localizations
cp -a $(BUILD_STAGE)/gettext-localizations $(BUILD_DIST)
# gettext-localizations.mk Make .debs
$(call PACK,gettext-localizations,DEB_GETTEXT-LOCALIZATIONS_V)
# gettext-localizations.mk Build cleanup
rm -rf $(BUILD_DIST)/gettext-localizations
.PHONY: gettext-localizations gettext-localizations-package