From 84431ddb85ec91264917eeb93de94a16ed919ad4 Mon Sep 17 00:00:00 2001 From: "matth@ultra" Date: Mon, 2 Sep 2024 14:32:30 +0200 Subject: [PATCH] install favicon --- Makefile | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Makefile b/Makefile index 7dc61de..0d90947 100644 --- a/Makefile +++ b/Makefile @@ -38,20 +38,24 @@ $(error Edit this Makefile and set the ROOT_PATH variable) endif SRC_DIR = src +RES_DIR = resources _SRC_FLS = config.html config.js index.html index.js imgsort.php style.css style.css.map SRC_FLS = $(foreach f,$(_SRC_FLS),$(SRC_DIR)/$(f)) -INSTALL_FLS = $(foreach f,$(_SRC_FLS),$(INSTALL_DIR)/$(f)) +INSTALL_FLS = $(foreach f,$(_SRC_FLS),$(INSTALL_DIR)/$(f)) $(INSTALL_DIR)/favicon.png SASS_CMD = sass --color --load-path=src/sass -install: $(INSTALL_FLS) imgsort2-nginx.conf imgsort2-php-fpm.conf +install: $(INSTALL_FLS) imgsort2-nginx.conf imgsort2-php-fpm.conf $(INSTALL_DIR)/%.php: $(SRC_DIR)/%.php sed 's|$$rootDir = .*|$$rootDir = "$(ROOT_DIR)/";|; s|$$rootPath = .*|$$rootPath = "$(ROOT_PATH)/";|; s|$$stagingDirName = .*|$$stagingDirName = "$(STAGING_DIR)/";|' $< > $@ chmod 0744 $@ +$(INSTALL_DIR)/%.png: $(RES_DIR)/%.png + install -m 0744 $< $@ + $(INSTALL_DIR)/%: $(SRC_DIR)/% install -m 0744 $< $@