swtpm/samples/Makefile.am
Stefan Berger fdb2b546d4 samples: Have 2 more files shellcheck'ed
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
2025-05-02 09:50:19 -04:00

43 lines
948 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
.PHONY: syntax-check
syntax-check:
shellcheck \
swtpm-create-tpmca \
swtpm-create-user-config-files.in \
swtpm-localca.in