forked from CESNET/Nemea-Supervisor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile.am
39 lines (29 loc) · 1.64 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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS = munin configs
bin_PROGRAMS = supervisor supervisor_cli
supervisor_SOURCES = supervisor.c supervisor.h supervisor_api.h supervisor_main.c internal.c internal.h
supervisor_LDADD = -lpthread -ltrap
supervisor_cli_SOURCES = supervisor_cli.c internal.h internal.c
doc_DATA = README.md
EXTRA_DIST = nemea-supervisor nemea-modulesinfo check_nemea_loaded_module_config check_nemea_modules_connected README.md
bin_SCRIPTS = nemea-supervisor nemea-modulesinfo check_nemea_loaded_module_config check_nemea_modules_connected
DISTCHECK_CONFIGURE_FLAGS = "--with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)"
systemdsystemunit_DATA = nemea-supervisor.service
if MAKE_RPMS
RPMDIR = RPMBUILD
RPMFILENAME = $(PACKAGE_NAME)-$(VERSION)
.PHONY: rpm
rpm:
rm -rf "$(RPMDIR)/SOURCES/$(RPMFILENAME)"
mkdir -p $(RPMDIR)/BUILD/ $(RPMDIR)/SRPMS/ $(RPMDIR)/RPMS/ $(RPMDIR)/SOURCES
make ${AM_MAKEFLAGS} distdir='$(RPMDIR)/SOURCES/$(RPMFILENAME)' distdir
( cd "$(RPMDIR)/SOURCES/"; tar -z -c -f $(RPMFILENAME)-$(RELEASE).tar.gz $(RPMFILENAME); rm -rf $(RPMFILENAME); )
$(RPMBUILD) -ba $(PACKAGE_NAME).spec --define "_topdir `pwd`/$(RPMDIR)";
rpm-clean:
rm -rf $(RPMDIR)
else
endif
EXTRA_DIST += ncnemea/nemea-data.rng ncnemea/libtool ncnemea/nemea.c ncnemea/config.guess ncnemea/nemea.yang ncnemea/Makefile.in ncnemea/nemea-gdefs.rng ncnemea/config.sub ncnemea/paths_file ncnemea/aclocal.m4 ncnemea/ncnemea.h ncnemea/ltmain.sh ncnemea/nemea-schematron.xsl ncnemea/configure ncnemea/install-sh ncnemea/configure.in
install-exec-hook:
mkdir -p $(DESTDIR)/$(initdir)
$(LN_S) -f $(bindir)/nemea-supervisor $(DESTDIR)/$(initdir)/nemea-supervisor