|
Packit |
8ea169 |
confdir = $(CONF_DIR)
|
|
Packit |
8ea169 |
pluginsconfdir = $(PLUGINS_CONF_DIR)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
dist_pluginsconf_DATA = \
|
|
Packit |
8ea169 |
CCpp.conf \
|
|
Packit |
8ea169 |
oops.conf
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
if BUILD_ATOMIC
|
|
Packit |
8ea169 |
dist_pluginsconf_DATA += CCpp_Atomic.conf
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
defaultpluginsconfdir = $(DEFAULT_PLUGINS_CONF_DIR)
|
|
Packit |
8ea169 |
dist_defaultpluginsconf_DATA = $(dist_pluginsconf_DATA)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
sbin_SCRIPTS = \
|
|
Packit |
8ea169 |
abrt-install-ccpp-hook \
|
|
Packit |
8ea169 |
abrt-harvest-pstoreoops
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
bin_PROGRAMS = \
|
|
Packit |
8ea169 |
abrt-merge-pstoreoops
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
libexec_PROGRAMS = abrt-hook-ccpp
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# abrt-hook-ccpp
|
|
Packit |
8ea169 |
abrt_hook_ccpp_SOURCES = \
|
|
Packit |
8ea169 |
abrt-hook-ccpp.c
|
|
Packit |
8ea169 |
abrt_hook_ccpp_CPPFLAGS = \
|
|
Packit |
8ea169 |
-I$(srcdir)/../include \
|
|
Packit |
8ea169 |
-I$(srcdir)/../lib \
|
|
Packit |
8ea169 |
-DBIN_DIR=\"$(bindir)\" \
|
|
Packit |
8ea169 |
-DVAR_RUN=\"$(VAR_RUN)\" \
|
|
Packit |
8ea169 |
-DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \
|
|
Packit |
8ea169 |
-DDEFAULT_DUMP_LOCATION_MODE=$(DEFAULT_DUMP_LOCATION_MODE) \
|
|
Packit |
8ea169 |
-DDEFAULT_DUMP_DIR_MODE=$(DEFAULT_DUMP_DIR_MODE) \
|
|
Packit |
8ea169 |
$(GLIB_CFLAGS) \
|
|
Packit |
8ea169 |
$(LIBREPORT_CFLAGS) \
|
|
Packit |
8ea169 |
$(LIBSELINUX_CFLAGS) \
|
|
Packit |
8ea169 |
-D_GNU_SOURCE
|
|
Packit |
8ea169 |
if HAVE_SELINUX
|
|
Packit |
8ea169 |
abrt_hook_ccpp_CPPFLAGS += -DHAVE_SELINUX
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
abrt_hook_ccpp_LDADD = \
|
|
Packit |
8ea169 |
../lib/libabrt.la \
|
|
Packit |
8ea169 |
-lcap \
|
|
Packit |
8ea169 |
$(LIBREPORT_LIBS) \
|
|
Packit |
8ea169 |
$(LIBSELINUX_LIBS)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# abrt-merge-pstoreoops
|
|
Packit |
8ea169 |
abrt_merge_pstoreoops_SOURCES = \
|
|
Packit |
8ea169 |
abrt-merge-pstoreoops.c
|
|
Packit |
8ea169 |
abrt_merge_pstoreoops_CPPFLAGS = \
|
|
Packit |
8ea169 |
-I$(srcdir)/../include \
|
|
Packit |
8ea169 |
-I$(srcdir)/../lib \
|
|
Packit |
8ea169 |
-DVAR_RUN=\"$(VAR_RUN)\" \
|
|
Packit |
8ea169 |
-DPLUGINS_CONF_DIR=\"$(PLUGINS_CONF_DIR)\" \
|
|
Packit |
8ea169 |
-DDEFAULT_DUMP_DIR_MODE=$(DEFAULT_DUMP_DIR_MODE) \
|
|
Packit |
8ea169 |
$(GLIB_CFLAGS) \
|
|
Packit |
8ea169 |
$(LIBREPORT_CFLAGS) \
|
|
Packit |
8ea169 |
-D_GNU_SOURCE
|
|
Packit |
8ea169 |
abrt_merge_pstoreoops_LDADD = \
|
|
Packit |
8ea169 |
../lib/libabrt.la \
|
|
Packit |
8ea169 |
$(LIBREPORT_LIBS)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
DEFS = -DLOCALEDIR=\"$(localedir)\" @DEFS@
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
EXTRA_DIST = \
|
|
Packit |
8ea169 |
abrt-install-ccpp-hook.in \
|
|
Packit |
8ea169 |
abrt-harvest-pstoreoops.in
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
ALL_DEPENDENCES =
|
|
Packit |
8ea169 |
if BUILD_PYTHON2
|
|
Packit |
8ea169 |
pyhookdir = $(pyexecdir)
|
|
Packit |
8ea169 |
dist_pluginsconf_DATA += python.conf
|
|
Packit |
8ea169 |
ALL_DEPENDENCES += abrt_exception_handler.py
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
pyhook_PYTHON = \
|
|
Packit |
8ea169 |
abrt_exception_handler.py \
|
|
Packit |
8ea169 |
abrt.pth \
|
|
Packit |
8ea169 |
abrt_exception_handler_container.py \
|
|
Packit |
8ea169 |
abrt_container.pth
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
EXTRA_DIST += \
|
|
Packit |
8ea169 |
abrt_exception_handler.py.in
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
if BUILD_PYTHON3
|
|
Packit |
8ea169 |
py3hookdir = $(py3execdir)
|
|
Packit |
8ea169 |
dist_pluginsconf_DATA += python3.conf
|
|
Packit |
8ea169 |
ALL_DEPENDENCES += abrt_exception_handler3.py
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
py3hook_PYTHON = \
|
|
Packit |
8ea169 |
abrt_exception_handler3.py \
|
|
Packit |
8ea169 |
abrt3.pth \
|
|
Packit |
8ea169 |
abrt_exception_handler3_container.py \
|
|
Packit |
8ea169 |
abrt3_container.pth
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
EXTRA_DIST += \
|
|
Packit |
8ea169 |
abrt_exception_handler3.py.in
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
if BUILD_ADDON_VMCORE
|
|
Packit |
8ea169 |
sbin_SCRIPTS += \
|
|
Packit |
8ea169 |
abrt-harvest-vmcore
|
|
Packit |
8ea169 |
dist_pluginsconf_DATA += \
|
|
Packit |
8ea169 |
vmcore.conf
|
|
Packit |
8ea169 |
EXTRA_DIST += \
|
|
Packit |
8ea169 |
abrt_harvest_vmcore.py.in \
|
|
Packit |
8ea169 |
CCpp.conf.in
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
CLEANFILES := $(notdir $(wildcard *~)) $(notdir $(wildcard *\#)) $(notdir $(wildcard \.\#*)) $(notdir $(wildcard *.pyc)) $(man1_MANS)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Generate on build
|
|
Packit |
8ea169 |
all: $(ALL_DEPENDENCES)
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# Must be synchronized with another sed call below.
|
|
Packit |
8ea169 |
abrt_exception_handler.py: abrt_exception_handler.py.in
|
|
Packit |
8ea169 |
sed -e s,\@VAR_RUN\@,\"$(VAR_RUN)\",g \
|
|
Packit |
8ea169 |
-e s,\@CONF_DIR\@,\"$(CONF_DIR)\",g \
|
|
Packit |
8ea169 |
abrt_exception_handler.py.in >abrt_exception_handler.py
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
abrt_exception_handler3.py: abrt_exception_handler3.py.in
|
|
Packit |
8ea169 |
sed -e s,\@VAR_RUN\@,\"$(VAR_RUN)\",g \
|
|
Packit |
8ea169 |
-e s,\@CONF_DIR\@,\"$(CONF_DIR)\",g \
|
|
Packit |
8ea169 |
abrt_exception_handler3.py.in >abrt_exception_handler3.py
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
CCpp.conf: CCpp.conf.in
|
|
Packit |
8ea169 |
sed -e s,\@VAR_RUN\@,\"$(VAR_RUN)\",g \
|
|
Packit |
8ea169 |
-e s,\@CONF_DIR\@,\"$(CONF_DIR)\",g \
|
|
Packit |
8ea169 |
-e s,\@DEFAULT_PACKAGE_MANAGER\@,$(DEFAULT_PACKAGE_MANAGER),g \
|
|
Packit |
8ea169 |
CCpp.conf.in >CCpp.conf
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
# RPM fix: we need to regenerate abrt_exception_handler.py, because it has the default ddir
|
|
Packit |
8ea169 |
install-data-local:
|
|
Packit |
8ea169 |
if BUILD_PYTHON2
|
|
Packit |
8ea169 |
sed -e s,\@VAR_RUN\@,\"$(VAR_RUN)\",g \
|
|
Packit |
8ea169 |
-e s,\@CONF_DIR\@,\"$(CONF_DIR)\",g \
|
|
Packit |
8ea169 |
abrt_exception_handler.py.in >abrt_exception_handler.py
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
if BUILD_PYTHON3
|
|
Packit |
8ea169 |
sed -e s,\@VAR_RUN\@,\"$(VAR_RUN)\",g \
|
|
Packit |
8ea169 |
-e s,\@CONF_DIR\@,\"$(CONF_DIR)\",g \
|
|
Packit |
8ea169 |
abrt_exception_handler3.py.in >abrt_exception_handler3.py
|
|
Packit |
8ea169 |
endif
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
abrt-install-ccpp-hook: abrt-install-ccpp-hook.in
|
|
Packit |
8ea169 |
sed -e s,\@VAR_RUN\@,$(VAR_RUN),g \
|
|
Packit |
8ea169 |
-e s,\@libexecdir\@,$(libexecdir),g \
|
|
Packit |
8ea169 |
$< >$@
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
abrt-harvest-vmcore: abrt_harvest_vmcore.py.in
|
|
Packit |
8ea169 |
sed -e s,\@CONF_DIR\@,\$(CONF_DIR)\,g \
|
|
Packit |
8ea169 |
-e s,\@DEFAULT_DUMP_LOCATION\@,$(DEFAULT_DUMP_LOCATION),g \
|
|
Packit |
8ea169 |
-e s,\@FINDMNT\@,$(FINDMNT),g \
|
|
Packit |
8ea169 |
$< >$@
|
|
Packit |
8ea169 |
|
|
Packit |
8ea169 |
abrt-harvest-pstoreoops: abrt-harvest-pstoreoops.in
|
|
Packit |
8ea169 |
sed -e s,\@CONF_DIR\@,\$(CONF_DIR)\,g \
|
|
Packit |
8ea169 |
-e s,\@DEFAULT_DUMP_LOCATION\@,$(DEFAULT_DUMP_LOCATION),g \
|
|
Packit |
8ea169 |
$< >$@
|