Makefile.am 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960
  1. DISTCHECK_CONFIGURE_FLAGS = --with-systemdsystemunitdir=$$dc_install_base/$(systemdsystemunitdir)
  2. BUILT_SOURCES=
  3. CLEANFILES=
  4. man1_MANS=
  5. man8_MANS=
  6. AM_CFLAGS = @TANG_CFLAGS@ @jose_CFLAGS@
  7. LDADD = @jose_LIBS@ @http_parser_LIBS@
  8. cachedir = $(localstatedir)/cache/$(PACKAGE_NAME)
  9. jwkdir = $(localstatedir)/db/$(PACKAGE_NAME)
  10. nodist_systemdsystemunit_DATA = \
  11. units/tangd@.service \
  12. units/tangd.socket \
  13. units/tangd-update.path \
  14. units/tangd-update.service \
  15. units/tangd-keygen.service
  16. dist_libexec_SCRIPTS = src/tangd-update src/tangd-keygen
  17. dist_bin_SCRIPTS = src/tang-show-keys
  18. libexec_PROGRAMS = src/tangd
  19. man_ADOC_FILES= \
  20. doc/tang-show-keys.1.adoc \
  21. doc/tang.8.adoc
  22. if HAVE_A2X
  23. man_ROFF_FILES = $(man_ADOC_FILES:.adoc=.roff)
  24. BUILT_SOURCES += $(man_ROFF_FILES)
  25. CLEANFILES += $(man_ROFF_FILES) $(man_ROFF_FILES:.roff=)
  26. $(top_builddir)/%.roff: %.adoc
  27. $(MKDIR_P) $$(dirname $@)
  28. $(A2X) -f manpage $^ -D $(top_builddir)/$$(dirname $@)
  29. $(INSTALL) -m 644 $(top_builddir)/$(@:.roff=) $(top_builddir)/$@
  30. man1_MANS += doc/tang-show-keys.1
  31. man8_MANS += doc/tang.8
  32. endif
  33. src_tangd_SOURCES = src/http.c src/http.h src/tangd.c
  34. %: %.in
  35. $(AM_V_GEN)mkdir -p "`dirname "$@"`"
  36. $(AM_V_GEN)$(SED) \
  37. -e 's,@libexecdir\@,$(libexecdir),g' \
  38. -e 's,@jwkdir\@,$(jwkdir),g' \
  39. -e 's,@cachedir\@,$(cachedir),g' \
  40. $(srcdir)/$@.in > $@
  41. AM_TESTS_ENVIRONMENT = SD_ACTIVATE="@SD_ACTIVATE@" PATH=$(srcdir)/src:$(builddir)/src:$(PATH)
  42. TESTS = tests/adv tests/rec
  43. CLEANFILES += $(nodist_systemdsystemunit_DATA)
  44. EXTRA_DIST = \
  45. $(foreach unit,$(nodist_systemdsystemunit_DATA),$(unit).in) \
  46. COPYING \
  47. $(TESTS) \
  48. $(man_ADOC_FILES)