-
Notifications
You must be signed in to change notification settings - Fork 12
/
Makefile.am
47 lines (35 loc) · 1.04 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
39
40
41
42
43
44
45
46
AM_CFLAGS = -g \
$(JSON_C_CFLAGS) $(PCRE_CFLAGS) $(LIBSYSTEMD_CFLAGS) \
-Wall -Wno-uninitialized -W -D_FORTIFY_SOURCE=2
AM_CPPFLAGS = \
-DDATADIR='"$(datadir)"' -DSYSCONFDIR='"$(sysconfdir)"'
systemdsystemunitdir = @SYSTEMD_SYSTEMUNITDIR@
systemdsystemunit_DATA = data/tallow.service
sbin_PROGRAMS = tallow
tallow_SOURCES = \
src/tallow.c \
src/json.c \
src/json.h \
src/data.c \
src/data.h
tallow_LDADD = $(JSON_C_LIBS) $(PCRE_LIBS) $(LIBSYSTEMD_LIBS)
pkgdata_DATA = data/sshd.json
EXTRA_DIST = \
AUTHORS COPYING INSTALL README.md \
data/tallow.service.in \
data/sshd.json \
man/tallow.conf.5.md \
man/tallow.patterns.5.md \
man/tallow.1.md
dist_doc_DATA = tallow.conf
DISTCHECK_CONFIGURE_FLAGS = \
--with-systemdsystemunitdir=$(DESTDIR)$(SYSTEMDSYSTEMUNITDIR)
man_MANS = man/tallow.1 man/tallow.conf.5 man/tallow.patterns.5
clean-local:
rm -f $(man_MANS)
man/%.5: man/%.5.md
@mkdir -p $$(dirname $@)
pandoc -s -f markdown -t man $< --output $@
man/%.1: man/%.1.md
@mkdir -p $$(dirname $@)
pandoc -s -f markdown -t man $< --output $@