-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathMakefile
38 lines (33 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
28
29
30
31
32
33
34
35
36
37
38
#
# Makefile for tvspielfilm2xmltv
#
GRABBER = tvspielfilm2xmltv
DESTDIR ?=
PREFIX ?= /usr/local
MANDIR = $(PREFIX)/share/man
BINDIR = $(PREFIX)/bin
APPDIR = $(PREFIX)/share/$(GRABBER)
.PHONY: install
all:
@true
install:
# Install the progam files
@install -D tvspielfilm2xmltv.py $(DESTDIR)$(APPDIR)/tvspielfilm2xmltv.py
@install -d $(DESTDIR)$(APPDIR)/tvsp2xmltv
@install -D tvsp2xmltv/*.py $(DESTDIR)$(APPDIR)/tvsp2xmltv
# Install the config
@install -d $(DESTDIR)/etc/$(GRABBER)
@install -b -m u+rw,go+r tvspielfilm2xmltv.ini $(DESTDIR)/etc/$(GRABBER)/tvspielfilm2xmltv.ini
# Install the man page
@install -d $(DESTDIR)$(MANDIR)/man1/
@gzip -c9 $(GRABBER).1 > $(DESTDIR)$(MANDIR)/man1/$(GRABBER).1.gz
# create the app link
@install -d $(DESTDIR)$(BINDIR)
@ln -sf ../share/$(GRABBER)/tvspielfilm2xmltv.py $(DESTDIR)$(BINDIR)/$(GRABBER)
# Install the Grabber API
# ugo+rw because may different user work with this file
@install -d -m ugo+rwx $(DESTDIR)/var/lib/epgsources
@install -d -m ugo+rwx $(DESTDIR)/var/lib/epgsources/$(GRABBER)-img
# Done.
@echo All done.
@echo "Now create the controll file with \"$(GRABBER) -c\""