7edd868151
on libvte and gtk3. WWW: https://github.com/linvinus/AltYo
56 lines
2.1 KiB
Text
56 lines
2.1 KiB
Text
--- Makefile.orig 2016-04-19 20:55:59 UTC
|
|
+++ Makefile
|
|
@@ -1,25 +1,7 @@
|
|
PRG_NAME=altyo
|
|
|
|
-# guess Linux distro
|
|
-LINUX.DISTRIB.FILE=$(shell ls /etc/lsb-release 2>/dev/null)
|
|
-ifeq ($(LINUX.DISTRIB.FILE),)
|
|
-LINUX.DISTRIB.FILE=$(shell ls /etc/debian_version 2>/dev/null)
|
|
-endif
|
|
-
|
|
-ifeq ($(LINUX.DISTRIB.FILE),/etc/lsb-release)
|
|
-LINUX.DISTRIB.ID=$(shell grep DISTRIB_ID /etc/lsb-release | sed 's/DISTRIB_ID=//')
|
|
-endif
|
|
-
|
|
-ifeq ($(LINUX.DISTRIB.FILE),/etc/debian_version)
|
|
-LINUX.DISTRIB.ID=debian
|
|
-endif
|
|
-
|
|
-ifeq ($(LINUX.DISTRIB.ID),Ubuntu)
|
|
-LINUX.DISTRIB.ID=ubuntu
|
|
-endif
|
|
-
|
|
-CHANGELOG_TAG=${shell grep -m 1 "^altyo" ./debian/changelog | sed 's/.*(//' | sed 's/).*$$//'| sed 's/~/_/' | sed 's/:/%/'}
|
|
-GIT_HASH=${shell which git >/dev/null && git log -1 --pretty=format:%h}
|
|
+GIT_HASH=
|
|
+CHANGELOG_TAG=
|
|
VALA_FLAGS ?=
|
|
|
|
#use tmpfs for ssd hard drive
|
|
@@ -95,19 +77,25 @@ install: gen_mo
|
|
test -z "$(DESTDIR)$(PREFIX)/share/applications" || mkdir -p "$(DESTDIR)$(PREFIX)/share/applications";
|
|
cp -a ./data/altyo.desktop $(DESTDIR)$(PREFIX)/share/applications
|
|
cp -a ./data/altyo_standalone.desktop $(DESTDIR)$(PREFIX)/share/applications
|
|
+ifeq ($(NLSUPPORT),yes)
|
|
test -z "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES" || mkdir -p "$(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES";
|
|
cp -a ./po/ru/LC_MESSAGES/altyo.mo $(DESTDIR)$(PREFIX)/share/locale/ru/LC_MESSAGES
|
|
+endif
|
|
test -z "$(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps" || mkdir -p "$(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps";
|
|
cp -a ./data/altyo.png $(DESTDIR)$(PREFIX)/share/icons/hicolor/48x48/apps
|
|
test -z "$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps" || mkdir -p "$(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps";
|
|
cp -a ./data/altyo.svg $(DESTDIR)$(PREFIX)/share/icons/hicolor/scalable/apps
|
|
|
|
gen_po:
|
|
+ifeq ($(NLSUPPORT),yes)
|
|
xgettext -o ./po/altyo.po --from-code=UTF-8 -language=C --keyword=_ --keyword=N_ $(VALA_FILES) $(GLADE_FILES)
|
|
msgmerge -s -U ./po/ru/LC_MESSAGES/$(PRG_NAME).po ./po/$(PRG_NAME).po
|
|
+endif
|
|
|
|
gen_mo:
|
|
+ifeq ($(NLSUPPORT),yes)
|
|
msgfmt -c -v -o ./po/ru/LC_MESSAGES/$(PRG_NAME).mo ./po/ru/LC_MESSAGES/$(PRG_NAME).po
|
|
+endif
|
|
|
|
source-package:
|
|
rm ./altyo || true
|