]> git.ipfire.org Git - people/ms/suricata.git/blame - Makefile.am
detect: allows <> syntax for uint ranges
[people/ms/suricata.git] / Makefile.am
CommitLineData
bab4b623
VJ
1# not a GNU package. You can remove this line, if
2# have all needed files, that a GNU package needs
3AUTOMAKE_OPTIONS = foreign 1.4
52936818 4ACLOCAL_AMFLAGS = -I m4
25804f5a 5EXTRA_DIST = ChangeLog COPYING LICENSE suricata.yaml.in \
99d9e095
JI
6 threshold.config \
7 $(SURICATA_UPDATE_DIR) \
507ed593
JI
8 lua \
9 acsite.m4
a7d90162 10SUBDIRS = $(HTP_DIR) rust src qa rules doc contrib etc python ebpf \
cbcbc0f6 11 $(SURICATA_UPDATE_DIR)
f7111f38 12
50ac3e04
EL
13CLEANFILES = stamp-h[0-9]*
14
25804f5a
EL
15install-data-am:
16 @echo "Run 'make install-conf' if you want to install initial configuration files. Or 'make install-full' to install configuration and rules";
17
c810748a
JI
18install-full:
19 $(MAKE) install
20 $(MAKE) install-conf
21 $(MAKE) install-rules
25804f5a
EL
22
23install-conf:
2b81caf7
JI
24 install -d "$(DESTDIR)$(e_sysconfdir)"
25 @test -e "$(DESTDIR)$(e_sysconfdir)/suricata.yaml" || install -m 600 "$(top_srcdir)/suricata.yaml" "$(DESTDIR)$(e_sysconfdir)"
99d9e095
JI
26 @test -e "$(DESTDIR)$(e_sysconfdir)/classification.config" || install -m 600 "$(top_srcdir)/etc/classification.config" "$(DESTDIR)$(e_sysconfdir)"
27 @test -e "$(DESTDIR)$(e_sysconfdir)/reference.config" || install -m 600 "$(top_srcdir)/etc/reference.config" "$(DESTDIR)$(e_sysconfdir)"
2b81caf7
JI
28 @test -e "$(DESTDIR)$(e_sysconfdir)/threshold.config" || install -m 600 "$(top_srcdir)/threshold.config" "$(DESTDIR)$(e_sysconfdir)"
29 install -d "$(DESTDIR)$(e_logfilesdir)"
30 install -d "$(DESTDIR)$(e_logcertsdir)"
31 install -d "$(DESTDIR)$(e_rundir)"
32 install -m 770 -d "$(DESTDIR)$(e_localstatedir)"
25804f5a
EL
33
34install-rules:
03da49bf 35if INSTALL_SURICATA_UPDATE
5fbb7cef 36 LD_LIBRARY_PATH=$(libdir) $(DESTDIR)$(bindir)/suricata-update \
732ce3f1
JI
37 --suricata $(DESTDIR)$(bindir)/suricata \
38 --suricata-conf $(DESTDIR)$(sysconfdir)/suricata/suricata.yaml \
39 --no-test --no-reload
40else
abb3cc85
JI
41 @echo ""
42 @echo "Warning: No rules will be downloaded as suricata-update"
43 @echo " is not available: ${install_suricata_update_reason}"
daa9dcb7 44endif
697e9e66 45 @echo ""
3c116653
JI
46 @echo "You can now start suricata by running as root something like:"
47 @echo " $(DESTDIR)$(bindir)/suricata -c $(DESTDIR)$(e_sysconfdir)suricata.yaml -i eth0"
697e9e66
VJ
48 @echo ""
49 @echo "If a library like libhtp.so is not found, you can run suricata with:"
3c116653
JI
50 @echo " LD_LIBRARY_PATH="$(DESTDIR)$(prefix)/lib" "$(DESTDIR)$(bindir)/suricata" -c "$(DESTDIR)$(e_sysconfdir)suricata.yaml" -i eth0"
51 @echo ""
52 @echo "The Emerging Threats Open rules are now installed. Rules can be"
53 @echo "updated and managed with the suricata-update tool."
54 @echo ""
55 @echo "For more information please see:"
56 @echo " https://suricata.readthedocs.io/en/latest/rule-management/index.html"
697e9e66 57 @echo ""
dbae17db
JI
58
59install-library:
60 cd src && $(MAKE) $@
61 cd rust && $(MAKE) $@
dfd930a1 62 $(INSTALL) libsuricata-config "$(DESTDIR)$(bindir)/libsuricata-config"
02218a8a
JI
63
64install-headers:
65 cd src && $(MAKE) $@