forked from aajanki/yle-dl
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
33 lines (28 loc) · 815 Bytes
/
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
prefix?=/usr/local
BINDIR=$(DESTDIR)/$(prefix)/bin
all:
install:
-mkdir -p $(BINDIR)
cp yle-dl $(BINDIR)
install-adobehds:
if [ ! -f $(BINDIR)/AdobeHDS.php ]; then \
curl https://raw.githubusercontent.com/K-S-V/Scripts/master/AdobeHDS.php > $(BINDIR)/AdobeHDS.php ; \
fi;
uninstall:
rm -f $(BINDIR)/yle-dl
# Uninstall librtmp and plugin installed by pre-2.0 versions
plugindir=$(prefix)/lib/librtmp/plugins
mandir=$(prefix)/man
libdir=$(prefix)/lib
PLUGINDIR=$(DESTDIR)$(plugindir)
MANDIR=$(DESTDIR)$(mandir)
LIBDIR=$(DESTDIR)$(libdir)
uninstall-old-rtmpdump:
rm -f $(BINDIR)/rtmpdump
rm -f $(BINDIR)/rtmpdump-yle
rm -f $(PLUGINDIR)/yle.*
rm -f $(LIBDIR)/librtmp.*
rm -f $(LIBDIR)/pkgconfig/librtmp.pc
rm -f $(MANDIR)/man1/rtmpdump.1
rm -f $(MANDIR)/man3/librtmp.3
rm -f $(MANDIR)/man8/rtmpgw.8