-
Notifications
You must be signed in to change notification settings - Fork 18
Expand file tree
/
Copy pathMakefile.am
More file actions
47 lines (41 loc) · 1.48 KB
/
Copy pathMakefile.am
File metadata and controls
47 lines (41 loc) · 1.48 KB
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
sbin_PROGRAMS= ikectl
ikectl_SOURCES= ikeca.c ikectl.c parser.c \
$(top_srcdir)/iked/log.c \
$(top_srcdir)/iked/util.c
ikectl_CFLAGS=
LIBCOMPAT= $(top_builddir)/openbsd-compat/libopenbsd-compat.a
LDADD= $(LIBCOMPAT)
CPPFLAGS= -include $(top_srcdir)/openbsd-compat/includes.h \
-I$(top_srcdir)/openbsd-compat \
-I$(top_srcdir)/iked \
-I$(srcdir) @CPPFLAGS@ @DEFS@
MANPAGES= ikectl.8.out
MANPAGES_IN= ikectl.8
EXTRA_DIST= $(MANPAGES_IN) ikeca.cnf
CLEANFILES= $(CONFIGFILES) $(MANPAGES)
PATHSUBS= -e 's|/etc/iked/|$(sysconfdir)/iked/|g' \
-e 's|/usr/libexec|$(libexecdir)|g' \
-e 's|/var/run/iked.sock|$(sockdir)/iked.sock|g'
FIXPATHSCMD= $(SED) $(PATHSUBS)
$(MANPAGES): $(MANPAGES_IN)
if test "$(MANTYPE)" = "cat"; then \
manpage=$(srcdir)/`echo $@ | sed 's/\.[1-9]\.out$$/\.0/'`; \
else \
manpage=$(srcdir)/`echo $@ | sed 's/\.out$$//'`; \
fi; \
if test "$(MANTYPE)" = "man"; then \
$(FIXPATHSCMD) $${manpage} | $(AWK) -f $(top_srcdir)/mdoc2man.awk > $@; \
else \
$(FIXPATHSCMD) $${manpage} > $@; \
fi
install-exec-hook: $(MANPAGES)
$(MKDIR_P) $(DESTDIR)$(sysconfdir)/iked/
$(MKDIR_P) $(DESTDIR)$(SSLDIR)
$(MKDIR_P) $(DESTDIR)$(sbindir)
$(MKDIR_P) $(DESTDIR)$(mandir)/$(mansubdir)8
@if [ ! -f $(DESTDIR)$(SSLDIR)/ikeca.cnf ]; then \
$(INSTALL) -m 644 ikeca.cnf $(DESTDIR)$(SSLDIR)/ikeca.cnf; \
else \
echo "$(DESTDIR)$(SSLDIR)/ikeca.cnf already exists, install will not overwrite"; \
fi
$(INSTALL) -m 644 ikectl.8.out $(DESTDIR)$(mandir)/$(mansubdir)8/ikectl.8