-
Notifications
You must be signed in to change notification settings - Fork 21
/
Makefile
27 lines (20 loc) · 1.13 KB
/
Makefile
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
#
# Build system for specification
#
LOCALE_DIR=${SRC_DIR}/locale
LOCALES_FILE=$(wildcard ${LOCALE_DIR}/*/LC_MESSAGES/dynamicTopBar.po)
SCHEMA_DIR=${SRC_DIR}/schemas
SCHEMA_FILE=org.gnome.shell.extensions.dynamic-top-bar.gschema.xml
all: translations schema
#zip: translations schema
# cd "${SRC_DIR}" && zip -r ../DynamicTopBar.zip *
translations: ${LOCALES_FILE}
@msgfmt "${LOCALE_DIR}/cs/LC_MESSAGES/dynamicTopBar.po" -o "${LOCALE_DIR}/cs/LC_MESSAGES/dynamicTopBar.mo"
@msgfmt "${LOCALE_DIR}/de/LC_MESSAGES/dynamicTopBar.po" -o "${LOCALE_DIR}/de/LC_MESSAGES/dynamicTopBar.mo"
@msgfmt "${LOCALE_DIR}/fr/LC_MESSAGES/dynamicTopBar.po" -o "${LOCALE_DIR}/fr/LC_MESSAGES/dynamicTopBar.mo"
@msgfmt "${LOCALE_DIR}/pl/LC_MESSAGES/dynamicTopBar.po" -o "${LOCALE_DIR}/pl/LC_MESSAGES/dynamicTopBar.mo"
@msgfmt "${LOCALE_DIR}/pt_BR/LC_MESSAGES/dynamicTopBar.po" -o "${LOCALE_DIR}/pt_BR/LC_MESSAGES/dynamicTopBar.mo"
@msgfmt "${LOCALE_DIR}/zh_CN/LC_MESSAGES/dynamicTopBar.po" -o "${LOCALE_DIR}/zh_CN/LC_MESSAGES/dynamicTopBar.mo"
schema: ${SCHEMA_DIR}/${SCHEMA_FILE}
@glib-compile-schemas "${SCHEMA_DIR}"