From fa246b6d9f2ab1311881299c4b050f53bbdb7d32 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Hugo=20H=C3=B6rnquist?= <hugo@lysator.liu.se> Date: Sat, 1 Jul 2023 18:28:36 +0200 Subject: [PATCH] Minor Makefile cleanup. --- static-src/Makefile | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/static-src/Makefile b/static-src/Makefile index e01aded..5852293 100644 --- a/static-src/Makefile +++ b/static-src/Makefile @@ -4,11 +4,16 @@ SCSS = scss OUT_DIR = out TARGET = style.css +SCSS_INCLUDE = . $(OUT_DIR) +SCSS_FLAGS = --sourcemap=auto \ + $(addprefix -I,$(SCSS_INCLUDE)) + DESTDIR = PREFIX = /usr/local/share/muppet/ # Path relative install root where the static files should end up LOCAL_PATH = static + # Highlighting files highlights = $(wildcard highlight/*.yaml) # Colorscheme files @@ -29,7 +34,7 @@ clean: -rm $(TARGET).map $(TARGET): style.scss $(SCSS_FILES) $(outputs) - $(SCSS) --sourcemap=auto -I. -Iout $< $@ + $(SCSS) $(SCSS_FLAGS) $< $@ $(OUT_DIR)/_highlight_%.scss: highlight/%.yaml $(OUT_DIR) ./build_css.py highlight $< > $@ -- GitLab