aboutsummaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile32
1 files changed, 24 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 2975e35..a36d6d3 100644
--- a/Makefile
+++ b/Makefile
@@ -24,10 +24,15 @@ ICONSDIR=$(PREFIX)/share/icons
PIXMAPSDIR=$(PREFIX)/share/pixmaps
LOCALEDIR=$(PREFIX)
DOCDIR=$(PREFIX)/share/doc/isodumper
-PYTHON=/usr/bin/env python
+PYTHON=/usr/bin/env python3
+SYSCONFDIR=/etc
DIRS = polkit
POFILES = po
+PACKAGE = isodumper
+VERSION = 0.51
+GITPATH = git://git.mageia.org/software/isodumper
+
all: dirs pofiles
dirs:
@@ -56,8 +61,8 @@ install:
mkdir -p $(DESTDIR)$(BINDIR)
install -m 755 polkit/isodumper $(DESTDIR)$(BINDIR)
- # for policy file isodumper on /usr/share/polkit-1/actions/
- # to have authentication with polkit (use for mageia policy)
+ # for policy file isodumper on /usr/share/polkit-1/actions/
+ # to have authentication with polkit (use for mageia policy)
mkdir -p $(DESTDIR)$(POLKITPOLICYDIR)
install -m 644 polkit/org.mageia.isodumper.policy $(DESTDIR)$(POLKITPOLICYDIR)
@@ -66,14 +71,25 @@ install:
install -m 755 lib/isodumper.py $(DESTDIR)$(LIBDIR)/isodumper
install -m 755 lib/raw_format.py $(DESTDIR)$(LIBDIR)/isodumper
- # for DATADIR isodumper.py header.png
+ # for manatools mpan file in /etc/manatools/mpan/categories.conf.d/
+ mkdir -p $(DESTDIR)$(SYSCONFDIR)/manatools/mpan/categories.conf.d
+ install -m 644 mpan/categories.conf.d/isodumper.conf $(DESTDIR)$(SYSCONFDIR)/manatools/mpan/categories.conf.d
+
+ # for DATADIR isodumper.py header.png and header.svg
mkdir -p $(DESTDIR)$(DATADIR)/isodumper
- install -m 644 share/isodumper/isodumper.glade $(DESTDIR)$(DATADIR)/isodumper
install -m 644 share/isodumper/header.png $(DESTDIR)$(DATADIR)/isodumper
+ install -m 644 share/isodumper/header.svg $(DESTDIR)$(DATADIR)/isodumper
- # for isodumper desktop menu entry
+ # for isodumper-qt desktop menu entry
mkdir -p $(DESTDIR)$(DATADIR)/applications
- install -m 644 share/applications/isodumper.desktop $(DESTDIR)$(DATADIR)/applications
+ install -m 644 share/applications/isodumper.desktop $(DESTDIR)$(DATADIR)/applications/isodumper-qt.desktop
+ sed -i -e "s|Name=IsoDumper|Name=IsoDumper (Qt)|" $(DESTDIR)$(DATADIR)/applications/isodumper-qt.desktop
+ sed -i -e "s|Exec=isodumper|Exec=isodumper --qt|" $(DESTDIR)$(DATADIR)/applications/isodumper-qt.desktop
+
+ # for isodumper-gtk desktop menu entry
+ install -m 644 share/applications/isodumper.desktop $(DESTDIR)$(DATADIR)/applications/isodumper-gtk.desktop
+ sed -i -e "s|Name=IsoDumper|Name=IsoDumper (GTK)|" $(DESTDIR)$(DATADIR)/applications/isodumper-gtk.desktop
+ sed -i -e "s|Exec=isodumper|Exec=isodumper --gtk|" $(DESTDIR)$(DATADIR)/applications/isodumper-gtk.desktop
# for isodumper doc
mkdir -p $(DESTDIR)$(DOCDIR)
@@ -97,6 +113,7 @@ install:
mkdir -p $(DESTDIR)$(ICONSDIR)/hicolor/scalable/apps
install -m 644 isodumper.svg $(DESTDIR)$(ICONSDIR)/hicolor/scalable/apps/isodumper.svg
+
# for isodumper.mo translations
for locale in share/locale/*; \
do \
@@ -107,7 +124,6 @@ install:
tar:
tar cvJf isodumper.tar.xz *
-
README.txt: README.md
pandoc -f markdown -t plain README.md -o README.txt