forked from CESNET/Nemea-Modules
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile.am
50 lines (42 loc) · 977 Bytes
/
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
ACLOCAL_AMFLAGS = -I m4
SUBDIRS=anonymizer \
debug_sender \
device_classifier \
email_reporter \
flowcounter \
json_dump \
json_replay \
logger \
logreplay \
merger \
report2idea \
traffic_repeater \
endiverter
EXTRA_DIST = AUTHORS COPYING ChangeLog INSTALL NEWS README.md nfreader
if HAVE_LIBNF
SUBDIRS += nfreader
else
if HAVE_LIBNFDUMP
SUBDIRS += nfreader
endif
endif
if HAVE_BISON
SUBDIRS += unirecfilter
endif
if HAVE_LIBPCAP
SUBDIRS += flow_meter
endif
RPMDIR = RPMBUILD
if MAKE_RPMS
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