This repository has been archived by the owner on Jun 9, 2018. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile
77 lines (61 loc) · 2.1 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
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
#!/usr/bin/make -f
#
# This file is part of Radio RaBe DAB+ On-Air Processing
#
# Copyright (c) 2017 Radio Bern RaBe
# http://www.rabe.ch
#
# This program is free software: you can redistribute it and/or modify
# it under the terms of the GNU Affero General Public License as published by
# the Free Software Foundation, either version 3 of the License, or
# (at your option) any later version.
#
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU Affero General Public License for more details.
#
# You should have received a copy of the GNU Affero General Public License
# along with this program. If not, see <http://www.gnu.org/licenses/>.
#
# Please submit enhancements, bugfixes or comments via GitHub:
# https://github.com/radiorabe/dabplus-on-air-processing
#
PN = dabplus-on-air-processing
LS = liquidsoap
LS_VER ?= 1.2.1
PADENC_N = odr-padenc@dabplus-on-air-processing
PREFIX ?= /usr/local
BINDIR = $(PREFIX)/bin
LIBDIR = $(PREFIX)/lib
ETCDIR ?= $(PREFIX)/etc
DOCDIR = $(PREFIX)/share/doc/$(PN)
MAN1DIR = $(PREFIX)/share/man/man1
UNITDIR = $(LIBDIR)/systemd/system
DATADIR = $(PREFIX)/share/$(PN)
LIQDIR = $(LIBDIR)/$(LS)/$(LS_VER)
all:
test:
clean:
install-bin:
install-sysconf:
@echo installing configuration files...
install -Dm755 -d $(ETCDIR)/liquidsoap/
install -Dm644 *.conf $(ETCDIR)/liquidsoap/
@echo done.
install-man:
install-doc:
install-data:
install-unit:
@echo installing systemd unit files...
install -Dm755 -d $(UNITDIR)/$(PADENC_N).service.d
install -Dm644 systemd/$(PADENC_N).service.d/* $(UNITDIR)/$(PADENC_N).service.d/
@echo done.
# startable liquidsoap scripts belong in etc everything else in LIQDIR
install-liq:
@echo installing liquidsoap files...
install -Dm755 -d $(LIQDIR)
install -Dm644 src/lib/*.liq $(LIQDIR)/
install -Dm755 src/*.liq $(ETCDIR)/$(LS)/
@echo done.
install: all install-bin install-sysconf install-man install-doc install-data install-unit install-liq