summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorAndreas Mair <amair.sob@googlemail.com>2005-05-12 11:01:29 +0200
committerAndreas Mair <amair.sob@googlemail.com>2005-05-12 11:01:29 +0200
commitbebe0382652e0616c8d040b3e217c2a21b81beee (patch)
tree30378ade7ba3e45c4ed6fc0915580cecc344d226 /Makefile
parent022c4f162d7b83cb287b7d16749899d9e7c4242a (diff)
downloadvdradmin-am-0.97-am3.2.tar.gz
vdradmin-am-0.97-am3.2.tar.bz2
2005-05-12: 0.97-am3.2v0.97-am3.2
- Added "make uninstall" to remove VDRAdmin from your system if you have installed it using "make install". Please always use this before you install a new release! - Fixed programming of repeating timers when day is "D" (Thanks to "maxkr" for reporting this). - Print date in prog_list & prog_list2 in system's locale. Please comment! - More transparent "selected channels" usage. - Added reccmds.conf content to rec_list (needs valid VDRCONFDIR in vdradmind.conf) - AutoTimers can now be limited to certain weekdays (Patch submitted by Magnus Schmidt). - Streaming can be turn on/off for live viewing and recordings viewing (Based on code submitted by Tobias Grimm). - Added streaming button to prog_list2. - Fixed handling of incorrect start/stop times in AutoTimer. - Changed localisation to use gettext() (Thanks to Tobias Grimm for doing most of the needed work). - Language can no longer be set in VDRAdmin, it's taken from your system's setting. Issue "export LC_MESSAGES=<language code>" if you need to change it, where <language code> is one of "de_DE", "en_EN", "es_ES", "fi_FI" or "fr_FR". - Added Finnish i18n (Submitted by Rolf Ahrenberg). - Fixed ":" & "|" handling in timer's directory (Thanks "vejoun"). - Added links to prog_list on channels in at_timer_list and timer_list. - Added IMDb lookup button to recording's detail view. - Added "Priority" and "Lifetime" tooltip to at_timer_list and timer_list (point mouse to timer's name). - Small changes for streaming recordings: Please update your vdradmind.conf (VIDEODIR & ST_VIDEODIR)! - Non-LinVDR logo on non-LinVDR machines (Posted by Unimatrix0 at vdrportal.de).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile60
1 files changed, 57 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index c44ee64..166df9d 100644
--- a/Makefile
+++ b/Makefile
@@ -3,10 +3,27 @@ LIBDIR=/usr/share/vdradmin
ETCDIR=/etc/vdradmin
DOCDIR=/usr/share/doc/vdradmin
BINDIR=/usr/bin
+LOCDIR=/usr/share/locale/
MANDIR=/usr/share/man/man1/
-distclean:
- rm -f vdradmind.conf vdradmind.at vdradmind.bl vdradmind.pid vdradmind.log
+LANGS=de es fr fi
+
+po/build_stamp:
+ $(MAKE) -C po LANGS="$(LANGS)"
+ for lang in $(LANGS); do \
+ [ ! -d locale/$$lang/LC_MESSAGES/ ] && mkdir -p locale/$$lang/LC_MESSAGES/; \
+ install -m 644 po/$$lang.mo locale/$$lang/LC_MESSAGES/vdradmin.mo; \
+ done
+
+all: po/build_stamp
+ touch build_stamp
+
+clean:
+ $(MAKE) -C po clean
+ -rm -f build_stamp
+
+distclean: clean
+ rm -f vdradmind.conf vdradmind.at vdradmind.bl vdradmind.done vdradmind.pid vdradmind.log
install:
@if [ ! -d $(DESTDIR)$(BINDIR) ]; then \
@@ -17,7 +34,7 @@ install:
@if [ ! -d $(DESTDIR)$(LIBDIR) ]; then \
mkdir -p $(DESTDIR)$(LIBDIR); \
fi
- cp -r i18n template lib $(DESTDIR)$(LIBDIR)
+ cp -r template lib $(DESTDIR)$(LIBDIR)
@if [ ! -d $(DESTDIR)$(ETCDIR) ]; then \
mkdir -p $(DESTDIR)$(ETCDIR); \
fi
@@ -29,3 +46,40 @@ install:
mkdir -p $(DESTDIR)$(DOCDIR); \
fi
cp -r COPYING HISTORY* README* INSTALL contrib $(DESTDIR)$(DOCDIR)
+ for lang in $(LANGS); do \
+ [ ! -d $(LOCDIR)/$$lang/LC_MESSAGES/ ] && mkdir -p $(LOCDIR)/$$lang/LC_MESSAGES/; \
+ install -m 644 po/$$lang.mo $(LOCDIR)/$$lang/LC_MESSAGES/vdradmin.mo; \
+ done
+
+uninstall:
+ if [ "$$(pidof -x vdradmind.pl)" ]; then \
+ killall vdradmind.pl; \
+ fi
+ if [ -d $(DESTDIR)$(DOCDIR) ]; then \
+ rm -rf $(DESTDIR)$(DOCDIR); \
+ fi
+ if [ -d $(DESTDIR)$(LIBDIR) ]; then \
+ rm -rf $(DESTDIR)$(LIBDIR); \
+ fi
+ if [ -e $(MANDIR)/vdradmind.pl.1 ]; then \
+ rm -f $(MANDIR)/vdradmind.pl.1; \
+ fi
+ if [ -e $(DESTDIR)$(BINDIR)/vdradmind.pl ]; then \
+ rm -f $(DESTDIR)$(BINDIR)/vdradmind.pl; \
+ fi
+ for lang in $(LANGS); do \
+ if [ -e $(LOCDIR)/$$lang/LC_MESSAGES/vdradmin.mo ]; then \
+ rm -f $(LOCDIR)/$$lang/LC_MESSAGES/vdradmin.mo; \
+ fi; \
+ done
+ @echo ""
+ @echo ""
+ @echo "******************************"
+ @echo "VDRAdmin has been uninstalled!"
+ @echo ""
+ @if [ -d $(DESTDIR)$(ETCDIR) ]; then \
+ echo ""; \
+ echo "Your configuration files located in $(DESTDIR)$(ETCDIR) have NOT been deleted!"; \
+ echo "If you want to get rid of them, please delete them manually!"; \
+ fi
+