-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathMakefile.am
25 lines (23 loc) · 1.05 KB
/
Makefile.am
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
AM_CFLAGS = -O2 -Wall -Wstrict-prototypes -Wmissing-prototypes -Wmissing-declarations -Wreturn-type -Wcast-align
bin_PROGRAMS = mochad
mochad_SOURCES = mochad.c decode.c encode.c global.c x10state.c x10_write.c \
decode.h encode.h global.h x10state.h x10_write.h
EXTRA_DIST = udev/91-usb-x10-controllers.rules hotplug2/20-usb-x10 hotplug2/mochad \
cgi/x10.pl cgi/netcat.pl cgi/getsensors.pl cgi/cgi-lib.pl \
apps/mochamon.pl apps/simplemon.pl apps/bash.sh \
apps/rfsectopl3.pl apps/x10-tk.py apps/mochad.scr
install-exec-hook:
if test -d /etc/systemd/system ; then \
cp $(abs_top_srcdir)/systemd/mochad.service /etc/systemd/system/ ; \
systemctl daemon-reload ; \
systemctl enable mochad.service ; \
systemctl restart mochad ; \
else \
if test -d /etc/udev/rules.d ; then \
cp $(abs_top_srcdir)/udev/91-usb-x10-controllers.rules /etc/udev/rules.d ; \
fi ; \
if test -d /etc/hotplug.d/usb ; then \
cp $(abs_top_srcdir)/hotplug2/20-usb-x10 /etc/hotplug.d/usb ; \
cp $(abs_top_srcdir)/hotplug2/mochad /etc/init.d ; \
fi ; \
fi ;