summaryrefslogtreecommitdiffstats
path: root/events/src/Makefile.am
blob: 8b2150e3aa9ab0ccb5fc4e4e9b04cd7ba7a2267e (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
noinst_PYTHON = $(top_srcdir)/events/eventskeygen.py
EXTRA_DIST = glustereventsd.py __init__.py  eventsapiconf.py.in \
	handlers.py utils.py peer_eventsapi.py eventsconfig.json

BUILT_SOURCES = eventtypes.py
CLEANFILES = eventtypes.py

eventsdir = $(libexecdir)/glusterfs/events
eventspeerscriptdir = $(libexecdir)/glusterfs
eventsconfdir = $(sysconfdir)/glusterfs
eventsconf_DATA = eventsconfig.json

events_PYTHON = __init__.py eventsapiconf.py eventtypes.py handlers.py utils.py
events_SCRIPTS = glustereventsd.py
eventspeerscript_SCRIPTS = peer_eventsapi.py

eventtypes.py: $(top_srcdir)/events/eventskeygen.py
	$(PYTHON) $(top_srcdir)/events/eventskeygen.py PY_HEADER

install-exec-hook:
	$(mkdir_p) $(DESTDIR)$(sbindir)
	rm -f $(DESTDIR)$(sbindir)/glustereventsd
	ln -s $(libexecdir)/glusterfs/events/glustereventsd.py \
		$(DESTDIR)$(sbindir)/glustereventsd
	rm -f $(DESTDIR)$(sbindir)/gluster-eventsapi
	ln -s $(libexecdir)/glusterfs/peer_eventsapi.py \
		$(DESTDIR)$(sbindir)/gluster-eventsapi

uninstall-hook:
	rm -f $(DESTDIR)$(sbindir)/glustereventsd
	rm -f $(DESTDIR)$(sbindir)/gluster-eventsapi