aboutsummaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile17
1 files changed, 9 insertions, 8 deletions
diff --git a/Makefile b/Makefile
index 6ae7ab6..25558e3 100644
--- a/Makefile
+++ b/Makefile
@@ -67,21 +67,22 @@ sample-malcontent:
"$$(realpath $@)" | \
make -C subrepos/hydrilla shell-with-haketilo
-HYDRILLA_HTTP_ROOT_DIR = $(TEST_ROOT_DIR)/var/www/hydrilla.koszko.org/html
HYDRILLA_WEBSITE_ETC_DIR = $(TEST_ROOT_DIR)/etc/guix-container/hydrilla-website
MALCONTENT_DIR = $(TEST_ROOT_DIR)/var/lib/hydrilla/malcontent_dirs
prepare-test-root: sample-malcontent
rm -rf $(TEST_ROOT_DIR)
@# Prepare replacement `/var/www`
- for SITE in koszko.org hydrillarepos.koszko.org; do \
- mkdir -p $(TEST_ROOT_DIR)/var/www/"$$SITE"/html; \
- printf 'This is dummy file for %s :D\n' "$$SITE" \
- > $(TEST_ROOT_DIR)/var/www/"$$SITE"/html/index.html; \
+ for WWW_SUBDIR in \
+ koszko.org/html \
+ hydrillarepos.koszko.org/html \
+ hydrilla.koszko.org/html/downloads \
+ hydrillarepos.koszko.org/html \
+ ; do \
+ mkdir -p $(TEST_ROOT_DIR)/var/www/"$$WWW_SUBDIR"; \
+ printf 'This is dummy file for %s :D\n' "$$WWW_SUBDIR" \
+ > $(TEST_ROOT_DIR)/var/www/"$$WWW_SUBDIR"/index.html; \
done
- mkdir -p $(HYDRILLA_HTTP_ROOT_DIR)/downloads
- printf 'This is dummy file for hydrilla.koszko.org/downloads\n' \
- > $(HYDRILLA_HTTP_ROOT_DIR)/downloads/index.html
@# Prepare replacement `/var/log`
mkdir -p $(TEST_ROOT_DIR)/var/log
@# Prepare replacement `/etc`