-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
32 lines (26 loc) · 1009 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
SUBDIRS = common db-utils process-template signal-event dvb-test \
irserver2uinput lircd2uinput xorg-launch-helper
.PHONY: $(SUBDIRS)
ALL = $(addsuffix -all,$(SUBDIRS))
INSTALL = $(addsuffix -install,$(SUBDIRS))
CLEAN = $(addsuffix -clean,$(SUBDIRS))
all: $(ALL)
install: $(INSTALL)
clean: $(CLEAN)
$(ALL): common.h
$(MAKE) -C $(@:-all=) all
$(INSTALL):
$(MAKE) -C $(@:-install=) install
for f in events templates; do \
cp -pr $$f $(DESTDIR)/usr/share/yavdr; done
chmod +x $(DESTDIR)/usr/share/yavdr/events/actions/*
cp -pr defaults $(DESTDIR)/usr/share/yavdr
install -m 700 untie-packages $(DESTDIR)/usr/sbin
install -m 700 yavdr-upgrade $(DESTDIR)/usr/sbin
install -m 700 change-vdr-uid $(DESTDIR)/usr/sbin
install -m 700 create-initial-database $(DESTDIR)/usr/sbin
install -m 755 scripts/yavdr-db-tool $(DESTDIR)/usr/bin/
install -m 755 scripts/yavdr-db-dump $(DESTDIR)/usr/bin/
install -m 700 yavdr-post-install $(DESTDIR)/usr/sbin
$(CLEAN):
$(MAKE) -C $(@:-clean=) clean