summaryrefslogtreecommitdiffstats
path: root/src/Hooks/Makefile.am
blob: 4eb25e2df31dcc865dbfff323c9d58dfd8819560 (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
53
54
55
56
57
58
59
60
61
62
63
libexec_PROGRAMS = hookCCpp
bin_PROGRAMS = dumpoops abrt-pyhook-helper

# CCpp
hookCCpp_SOURCES = \
    CCpp.cpp
hookCCpp_CPPFLAGS = \
    -I$(srcdir)/../../inc \
    -I$(srcdir)/../../lib/Utils \
    -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
    -DVAR_RUN=\"$(VAR_RUN)\" \
    -D_GNU_SOURCE
hookCCpp_LDADD = \
    ../../lib/Utils/libABRTUtils.la

# dumpoops
dumpoops_SOURCES = \
    dumpoops.cpp
dumpoops_CPPFLAGS = \
    -I$(srcdir)/../../inc \
    -I$(srcdir)/../../lib/Utils \
    -I$(srcdir)/../../lib/Plugins \
    -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
    -DPLUGINS_LIB_DIR=\"$(PLUGINS_LIB_DIR)\" \
    -DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \
    -DCONF_DIR=\"$(CONF_DIR)\" \
    -DVAR_RUN=\"$(VAR_RUN)\" \
    -D_GNU_SOURCE
dumpoops_LDADD = \
    ../../lib/Utils/libABRTUtils.la

# abrt-pyhook-helper
abrt_pyhook_helper_SOURCES = \
    abrt-pyhook-helper.cpp
abrt_pyhook_helper_CPPFLAGS = \
    -I$(srcdir)/../../inc \
    -I$(srcdir)/../../lib/Utils \
    -DDEBUG_DUMPS_DIR=\"$(DEBUG_DUMPS_DIR)\" \
    -DVAR_RUN=\"$(VAR_RUN)\" \
    -D_GNU_SOURCE
abrt_pyhook_helper_LDADD = \
    ../../lib/Utils/libABRTUtils.la

man_MANS = pyhook.conf.5

python_PYTHON = sitecustomize.py abrt_exception_handler.py
EXTRA_DIST = abrt_exception_handler.py.in $(man_MANS)

pyhookconfdir = $(CONF_DIR)
dist_pyhookconf_DATA = pyhook.conf

CLEANFILES := $(notdir $(wildcard *~)) $(notdir $(wildcard *\#)) $(notdir $(wildcard \.\#*)) $(notdir $(wildcard *.pyc))

abrt_exception_handler.py:
	sed s,@DEBUG_DUMP_DIR@,$(DEBUG_DUMPS_DIR),g abrt_exception_handler.py.in  > abrt_exception_handler.py

# RPM fix: we need to regenerate abrt_exception_handler.py, because it has the default ddir
install-data-local:
	sed s,@DEBUG_DUMP_DIR@,$(DEBUG_DUMPS_DIR),g abrt_exception_handler.py.in  > abrt_exception_handler.py

install-data-hook:
	chmod u+s,g+s $(DESTDIR)$(bindir)/abrt-pyhook-helper