parent
052408ef43
commit
1f8d7018e1
@ -0,0 +1,141 @@
|
||||
#!/usr/bin/make -f
|
||||
|
||||
#SHELL := /bin/bash
|
||||
MAKEFILE_FILEPATH := $(abspath $(lastword $(MAKEFILE_LIST)))
|
||||
MAKEFILE_DIR := $(notdir $(patsubst %/,%,$(dir $(MAKEFILE_FILEPATH))))
|
||||
MAKEFILE_PATH := $(dir $(MAKEFILE_FILEPATH))
|
||||
|
||||
CMAKE_COMMAND = cmake
|
||||
#CMAKE_SOURCE_DIR = $(MAKEFILE_PATH)source
|
||||
#CMAKE_BUILD_DIR = $(MAKEFILE_PATH)compile
|
||||
CMAKE_SOURCE_DIR = ./source
|
||||
CMAKE_BUILD_DIR = ./compile
|
||||
PKGNAME = $(MAKEFILE_DIR)
|
||||
#PKGNAME = check-hostalive
|
||||
|
||||
default_target: all
|
||||
|
||||
all: init build
|
||||
|
||||
init:
|
||||
@echo "Initialize ..."; \
|
||||
echo "-- Build path: ${CMAKE_BUILD_DIR}"
|
||||
|
||||
depend:
|
||||
@echo "Check depends ..."; \
|
||||
if [ ! -f /bin/cmake ]; then \
|
||||
echo "-- Depend 'cmake' not fount !"; \
|
||||
exit 1; \
|
||||
fi; \
|
||||
echo "Check depends: OK"
|
||||
# $(CMAKE_COMMAND) -S$(CMAKE_SOURCE_DIR) -B$(CMAKE_BINARY_DIR) --check-build-system CMakeFiles/Makefile.cmake 1
|
||||
|
||||
debug:
|
||||
@echo "Debug ..."
|
||||
if [ ! -d ${CMAKE_BUILD_DIR} ]; then \
|
||||
cmake -S${CMAKE_SOURCE_DIR} -B${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Debug -DCMAKE_INSTALL_PREFIX="/usr"; \
|
||||
fi; \
|
||||
echo "Debug: OK"
|
||||
|
||||
prepare:
|
||||
@echo "Prepare ..."; \
|
||||
if [ ! -d ${CMAKE_BUILD_DIR} ]; then \
|
||||
cmake -S${CMAKE_SOURCE_DIR} -B${CMAKE_BUILD_DIR} -DCMAKE_BUILD_TYPE=Release -DCMAKE_INSTALL_PREFIX="/usr"; \
|
||||
fi; \
|
||||
echo "Prepare: OK"
|
||||
|
||||
check:
|
||||
@echo "Check ..."; \
|
||||
if [ -f ${CMAKE_BUILD_DIR}/${PKGNAME} ]; then \
|
||||
echo "Check: OK"; \
|
||||
else \
|
||||
echo "Check: ${CMAKE_BUILD_DIR}/${PKGNAME} not fount !"; \
|
||||
exit 1; \
|
||||
fi
|
||||
|
||||
build: depend prepare
|
||||
@echo "Build ..."; \
|
||||
make --directory=${CMAKE_BUILD_DIR}; \
|
||||
echo "Build: OK"
|
||||
|
||||
uninstall:
|
||||
@echo "Uninstall ..."
|
||||
@for SIZE in 16x16 32x32 48x48 scalable; do \
|
||||
$(RM) "/usr/share/icons/hicolor/$${SIZE}/apps/${PKGNAME}.svg"; \
|
||||
$(RM) "/usr/share/icons/hicolor/$${SIZE}/apps/${PKGNAME}.png"; \
|
||||
done
|
||||
@for FILE_SVG in $(wildcard *.svg); do \
|
||||
for SIZE in 16x16 32x32 48x48 scalable; do \
|
||||
$(RM) "/usr/share/icons/hicolor/$${SIZE}/status/$${FILE_SVG%.*}".{svg,png,jpg}; \
|
||||
done; \
|
||||
done
|
||||
@for FILE_PO in $(wildcard *.po); do \
|
||||
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \
|
||||
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \
|
||||
PATH_FILE_MO="/usr/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
||||
$(RM) "/usr/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
||||
done
|
||||
@$(RM) "/usr/bin/${PKGNAME}"
|
||||
@$(RM) "/usr/share/applications/${PKGNAME}.desktop"
|
||||
@gtk-update-icon-cache -fiq /usr/share/icons/hicolor/ &>/dev/null
|
||||
@update-desktop-database --quiet 2>/dev/null
|
||||
@touch /usr/share/applications
|
||||
@echo "Uninstall: OK"
|
||||
|
||||
install: check uninstall
|
||||
@echo "Install ..."
|
||||
@for FILE_PO in $(wildcard *.po); do \
|
||||
LANG=$${FILE_PO##*_};LANG=$${LANG%.*}; \
|
||||
install -dm755 /usr/share/locale/$${LANG}/LC_MESSAGES; \
|
||||
FILE_MO=$${FILE_PO##*/}; FILE_MO="$${FILE_MO%_*.po}.mo"; \
|
||||
PATH_FILE_MO="/usr/share/locale/$${LANG}/LC_MESSAGES/$${FILE_MO}"; \
|
||||
echo $${FILE_PO}; \
|
||||
msgfmt "$${FILE_PO}" -v -f -o "$${PATH_FILE_MO}"; \
|
||||
done
|
||||
@for SIZE in 16 32 48; do \
|
||||
install -dm755 /usr/share/icons/hicolor/$${SIZE}x$${SIZE}/apps; \
|
||||
rsvg-convert -w $${SIZE} -h $${SIZE} -f svg --keep-image-data ${PKGNAME}.svg -o "/usr/share/icons/hicolor/$${SIZE}x$${SIZE}/apps/${PKGNAME}.svg"; \
|
||||
done
|
||||
@install -dm755 /usr/share/icons/hicolor/scalable/apps
|
||||
@install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg
|
||||
@install -dm755 /usr/share/icons/hicolor/scalable/status
|
||||
@install -Dm644 -t /usr/share/icons/hicolor/scalable/status/ \
|
||||
status-original-red.svg \
|
||||
status-original-dark.svg \
|
||||
status-original-green.svg \
|
||||
status-vpn-down.svg \
|
||||
status-vpn-up-dark.svg \
|
||||
status-vpn-up-green.svg \
|
||||
status-isp-down.svg \
|
||||
status-isp-up-dark.svg \
|
||||
status-isp-up-green.svg \
|
||||
status-rdp-down.svg \
|
||||
status-rdp-up-dark.svg \
|
||||
status-rdp-up-green.svg
|
||||
@install -Dm755 -t /usr/bin/ ${CMAKE_BUILD_DIR}/${PKGNAME}
|
||||
@install -Dm644 -t /usr/share/applications/ ${PKGNAME}.desktop
|
||||
@install -Dm644 -t /usr/share/icons/hicolor/scalable/apps/ ${PKGNAME}.svg
|
||||
@gtk-update-icon-cache -fiq /usr/share/icons/hicolor/ &>/dev/null
|
||||
@update-desktop-database --quiet 2>/dev/null
|
||||
@touch /usr/share/applications
|
||||
@echo "Install: OK"
|
||||
|
||||
clean:
|
||||
@echo "Clean ..."
|
||||
@$(RM) -rd ${CMAKE_BUILD_DIR}
|
||||
@if [ -d ${CMAKE_BUILD_DIR} ]; then \
|
||||
echo "Clean: error, compile directory exist ${CMAKE_BUILD_DIR}"; \
|
||||
else \
|
||||
echo "Clean: OK"; \
|
||||
fi
|
||||
|
||||
help:
|
||||
@echo "The following are some of the valid targets for this Makefile:"
|
||||
@echo "... all (the default if no target is provided)"
|
||||
@echo "... init"
|
||||
@echo "... debug"
|
||||
@echo "... prepare"
|
||||
@echo "... compile"
|
||||
@echo "... install"
|
||||
@echo "... uninstall"
|
||||
@echo "... clean"
|
||||
|
Before Width: | Height: | Size: 366 KiB After Width: | Height: | Size: 366 KiB |
|
Before Width: | Height: | Size: 14 KiB After Width: | Height: | Size: 14 KiB |
Binary file not shown.
@ -1,96 +0,0 @@
|
||||
# SOME DESCRIPTIVE TITLE.
|
||||
# Copyright (C) YEAR THE PACKAGE'S COPYRIGHT HOLDER
|
||||
# This file is distributed under the same license as the PACKAGE package.
|
||||
# FIRST AUTHOR <EMAIL@ADDRESS>, YEAR.
|
||||
#
|
||||
#, fuzzy
|
||||
msgid ""
|
||||
msgstr ""
|
||||
"Project-Id-Version: PACKAGE VERSION\n"
|
||||
"Report-Msgid-Bugs-To: \n"
|
||||
"POT-Creation-Date: 2023-01-17 04:52+0000\n"
|
||||
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
|
||||
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
|
||||
"Language-Team: LANGUAGE <LL@li.org>\n"
|
||||
"Language: \n"
|
||||
"MIME-Version: 1.0\n"
|
||||
"Content-Type: text/plain; charset=CHARSET\n"
|
||||
"Content-Transfer-Encoding: 8bit\n"
|
||||
|
||||
#: test.c:724
|
||||
msgid "Back to settings"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:841
|
||||
msgid "UBLinux Settings Manager"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:842
|
||||
msgid "Personal"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:843
|
||||
msgid "Hardware"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:844
|
||||
msgid "System"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:845
|
||||
msgid "Icon size"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:846
|
||||
msgid "Window theme"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:847
|
||||
msgid "Misc"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:848
|
||||
msgid "Would you like to read documentation in the Web?"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:849
|
||||
msgid ""
|
||||
"You will be redirected to documentation site, where user help pages are "
|
||||
"translated and supported by community."
|
||||
msgstr ""
|
||||
|
||||
#: test.c:850
|
||||
msgid "Read online"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:851
|
||||
msgid "Cancel"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:852
|
||||
msgid "Close without saving"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:853
|
||||
msgid "Save and reload"
|
||||
msgstr "Save and apply"
|
||||
|
||||
#: test.c:854
|
||||
msgid "Always redirect"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:855
|
||||
msgid "Settings"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:856
|
||||
msgid "About..."
|
||||
msgstr ""
|
||||
|
||||
#: test.c:899
|
||||
msgid "Standard theme"
|
||||
msgstr ""
|
||||
|
||||
#: test.c:900
|
||||
msgid "GNOME theme"
|
||||
msgstr ""
|
||||
Loading…
Reference in new issue