blob: b10f051693e4e7a17e9b61bd06ced8c511fe7a9d (
plain)
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
|
#
# Makefile
#
# See the README file for copyright information and how to reach the author.
#
#
EPGD_SRC ?= ../..
include $(EPGD_SRC)/Make.config
PLUGIN = epgdata
SOFILE = libepgd-epgdata.so
OBJS = epgdata.o
CFLAGS += -I$(EPGD_SRC)
all: $(SOFILE)
$(SOFILE): $(OBJS)
$(CC) -shared $(OBJS) $(LIBS) -o $@
install: $(SOFILE) install-config
install -D $(SOFILE) $(_PLGDEST)/
clean:
@-rm -f $(OBJS) core* *~ *.so
install-config:
if ! test -d $(CONFDEST); then \
mkdir -p $(CONFDEST); \
chmod a+rx $(CONFDEST); \
fi
if ! test -f $(CONFDEST)/channelmap.conf-epgdata-astra; then \
install --mode=644 -D ./configs/channelmap.conf-epgdata-astra $(CONFDEST)/; \
fi
for i in $(wildcard ./configs/epgdata*.xml) $(wildcard ./configs/*.xsl); do\
if ! test -f "$(CONFDEST)/`basename $$i`"; then\
install --mode=644 -D "$$i" $(CONFDEST)/; \
fi;\
done;
if ! grep -q "^epgdata" $(CONFDEST)/epgd.conf; then \
cat ./configs/epgd.conf >> $(CONFDEST)/epgd.conf; \
fi
#***************************************************************************
# dependencies
#***************************************************************************
epgdata.o : epgdata.c epgdata.h
|