-
-
Notifications
You must be signed in to change notification settings - Fork 136
/
Makefile.am
51 lines (42 loc) · 1.13 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
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = docs \
src/lib/utils \
src/lib/ebus
if KNX
SUBDIRS += src/lib/knx
endif
SUBDIRS += \
src/ebusd \
src/tools
EXTRA_DIST = LICENSE \
ChangeLog.md \
README.md \
VERSION
if MQTT
MQTT_INST_ADD = cp -n $(srcdir)/contrib/etc/ebusd/mqtt-*.cfg $(DESTDIR)$(sysconfdir)/ebusd;
endif
if KNX
KNX_INST_ADD = cp -n $(srcdir)/contrib/etc/ebusd/knx*.cfg $(DESTDIR)$(sysconfdir)/ebusd;
endif
install-data-hook:
@[ -d $(DESTDIR)$(sysconfdir)/ebusd ] || mkdir -p $(DESTDIR)$(sysconfdir)/ebusd; \
if [ -f "/etc/debian_version" ]; then \
mkdir -p $(DESTDIR)/etc/default/ $(DESTDIR)/etc/init.d/ $(DESTDIR)/lib/systemd/system/; \
cp -n $(srcdir)/contrib/debian/default/ebusd $(DESTDIR)/etc/default/; \
cp $(srcdir)/contrib/debian/init.d/ebusd $(DESTDIR)/etc/init.d/; \
cp $(srcdir)/contrib/debian/systemd/ebusd.service $(DESTDIR)/lib/systemd/system/; \
fi; \
$(MQTT_INST_ADD) \
$(KNX_INST_ADD)
test:
$(MAKE) -C src/lib/ebus/test
if CONTRIB
$(MAKE) -C src/lib/ebus/contrib/test
endif
distclean-local:
-rm -rf autom4te.cache
-rm -f aclocal.m4
-rm -f config.h.in
-rm -f configure
-rm -f Makefile.in
-rm -rf build