forked from latchset/tang
-
Notifications
You must be signed in to change notification settings - Fork 3
/
Makefile.am
60 lines (48 loc) · 1.61 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
47
48
49
50
51
52
53
54
55
56
57
58
59
60
DISTCHECK_CONFIGURE_FLAGS = --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
BUILT_SOURCES=
CLEANFILES=
man1_MANS=
man8_MANS=
AM_CFLAGS = @TANG_CFLAGS@ @jose_CFLAGS@
LDADD = @jose_LIBS@ @http_parser_LIBS@
cachedir = $(localstatedir)/cache/$(PACKAGE_NAME)
jwkdir = $(localstatedir)/db/$(PACKAGE_NAME)
nodist_systemdsystemunit_DATA = \
units/[email protected] \
units/tangd.socket \
units/tangd-update.path \
units/tangd-update.service \
units/tangd-keygen.service
dist_libexec_SCRIPTS = src/tangd-update src/tangd-keygen
dist_bin_SCRIPTS = src/tang-show-keys
libexec_PROGRAMS = src/tangd
man_ADOC_FILES= \
doc/tang-show-keys.1.adoc \
doc/tang.8.adoc
if HAVE_A2X
man_ROFF_FILES = $(man_ADOC_FILES:.adoc=.roff)
BUILT_SOURCES += $(man_ROFF_FILES)
CLEANFILES += $(man_ROFF_FILES) $(man_ROFF_FILES:.roff=)
$(top_builddir)/%.roff: %.adoc
$(MKDIR_P) $$(dirname $@)
$(A2X) -f manpage $^ -D $(top_builddir)/$$(dirname $@)
$(INSTALL) -m 644 $(top_builddir)/$(@:.roff=) $(top_builddir)/$@
man1_MANS += doc/tang-show-keys.1
man8_MANS += doc/tang.8
endif
src_tangd_SOURCES = src/http.c src/http.h src/tangd.c
%: %.in
$(AM_V_GEN)mkdir -p "`dirname "$@"`"
$(AM_V_GEN)$(SED) \
-e 's,@libexecdir\@,$(libexecdir),g' \
-e 's,@jwkdir\@,$(jwkdir),g' \
-e 's,@cachedir\@,$(cachedir),g' \
$(srcdir)/[email protected] > $@
AM_TESTS_ENVIRONMENT = SD_ACTIVATE="@SD_ACTIVATE@" PATH=$(srcdir)/src:$(builddir)/src:$(PATH)
TESTS = tests/adv tests/rec
CLEANFILES += $(nodist_systemdsystemunit_DATA)
EXTRA_DIST = \
$(foreach unit,$(nodist_systemdsystemunit_DATA),$(unit).in) \
COPYING \
$(TESTS) \
$(man_ADOC_FILES)