Tweak the Makefile.am to install the right things

Install the assets and sqitch files, as they are needed. Remove the test
related sources.
This commit is contained in:
Christopher Baines 2019-06-08 10:27:07 +01:00
parent 42c608e004
commit 88922d9f11

View file

@ -30,6 +30,16 @@ moddir = $(prefix)/share/guile/site/$(GUILE_EFFECTIVE_VERSION)
godir = $(moddir) godir = $(moddir)
assetsdir = $(datadir)/@PACKAGE@ assetsdir = $(datadir)/@PACKAGE@
install-data-local:
mkdir -p "$(DESTDIR)$(pkgdatadir)" || exit 1;
cp -r assets "$(DESTDIR)$(pkgdatadir)/" || exit 1;
cp -r sqitch "$(DESTDIR)$(pkgdatadir)/" || exit 1;
install-data-hook:
# These files shouldn't be installed, but I have no idea how to specify that
# :(
rm -r "$(DESTDIR)$(moddir)/tests"
SOURCES = \ SOURCES = \
guix-data-service/branch-updated-emails.scm \ guix-data-service/branch-updated-emails.scm \
guix-data-service/builds.scm \ guix-data-service/builds.scm \