aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorWojtek Kosior <koszko@koszko.org>2022-11-29 12:56:11 +0100
committerWojtek Kosior <koszko@koszko.org>2022-11-29 12:56:11 +0100
commit27f0319cad7493756eef43dbf67474048382a0ea (patch)
treee3d338e01e3f711a499e64bf7e3fb5a1807f8a83 /Makefile
parent97094c6787d03f0e7910ad86d8c9680a38a8cc48 (diff)
downloadkoszko-org-server-27f0319cad7493756eef43dbf67474048382a0ea.tar.gz
koszko-org-server-27f0319cad7493756eef43dbf67474048382a0ea.zip
correct the prerequisites for `install` target
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile8
1 files changed, 5 insertions, 3 deletions
diff --git a/Makefile b/Makefile
index 2e448a9..b6f79dd 100644
--- a/Makefile
+++ b/Makefile
@@ -34,6 +34,8 @@ ALL_EGG_INFOS = \
$(HYDRILLA_WEBSITE_INFO) \
$(HYDRILLA_INFO)
+CONTAINER_PREREQUISITES = container.scm $(ALL_EGG_INFOS) hydrilla-wsgi.py
+
TEST_ROOT_DIR = "/tmp/$$(pwd | sed 's|/|!|g')"'!!test-root'
all: | container-runner.touchfile log sample-malcontent
@@ -45,8 +47,8 @@ $(HYDRILLA_WEBSITE_INFO):
$(HYDRILLA_INFO):
$(MAKE) -C subrepos/hydrilla dist
-container-runner: | container.scm $(ALL_EGG_INFOS) hydrilla-wsgi.py
-container-runner.touchfile: container.scm $(ALL_EGG_INFOS) hydrilla-wsgi.py
+container-runner: | $(CONTAINER_PREREQUISITES)
+container-runner.touchfile: $(CONTAINER_PREREQUISITES)
container-runner container-runner.touchfile:
$(MAKE) clean-runner
@@ -108,7 +110,7 @@ enter-container: pidfile
fake-client: fake-client-setup-mounts.sh hosts
unshare --map-root-user --mount ./$< "$${SHELL:-/bin/sh}"
-install: container.scm sdists
+install: $(CONTAINER_PREREQUISITES)
cp guix-container.sh /etc/init.d/guix-container
mkdir -p /usr/local/bin
if [ -e /usr/local/bin/guix-container ]; then \