mirror of
https://github.com/stefanberger/swtpm.git
synced 2025-08-22 19:04:35 +00:00

- Move swtpm_localca's sources out of samples/ (where they no longer belong now that swtpm_localca is a binary) to src/swtpm_localca/. - Tests now call the swtpm_localca binary directly at the location where it was built, as they do with all other compiled programs. - Simplify samples/swtpm-localca.in and delete swtpm-localca.2inst, removing the now-unnecessary logic to selectively call swtpm_localca from different locations (samples/ when running tests vs. /usr/bin/ post-installation). Signed-off-by: Nick Chevsky <nchevsky@users.noreply.github.com>
36 lines
818 B
Makefile
36 lines
818 B
Makefile
#
|
|
# samples/Makefile.am
|
|
#
|
|
# For the license, see the LICENSE file in the root directory.
|
|
#
|
|
|
|
samplesconfdir = $(datadir)/@PACKAGE@
|
|
samplessysconfdir = $(sysconfdir)
|
|
|
|
samplesconf_SCRIPTS = \
|
|
swtpm-create-tpmca \
|
|
swtpm-create-user-config-files \
|
|
swtpm-localca
|
|
|
|
samplessysconf_DATA = \
|
|
swtpm-localca.conf \
|
|
swtpm-localca.options \
|
|
swtpm_setup.conf
|
|
|
|
$(top_builddir)/src/utils/libswtpm_utils.la:
|
|
$(MAKE) -C$(dir $@)
|
|
|
|
install-data-local:
|
|
$(MKDIR_P) $(DESTDIR)$(localstatedir)/lib/swtpm-localca
|
|
if test -z $(DESTDIR); then \
|
|
chown -R @TSS_USER@:root $(DESTDIR)$(localstatedir)/lib/swtpm-localca || true; \
|
|
chmod 0750 $(DESTDIR)$(localstatedir)/lib/swtpm-localca || true; \
|
|
fi
|
|
|
|
EXTRA_DIST= \
|
|
swtpm-create-tpmca \
|
|
swtpm-create-user-config-files \
|
|
swtpm-localca.conf \
|
|
swtpm-localca.options \
|
|
swtpm_setup.conf
|