From 83dbe5fa3e316d0556295111a8aeb9923c18a153 Mon Sep 17 00:00:00 2001 From: Sergey Lyubka Date: Sat, 17 Aug 2024 08:20:41 +0100 Subject: [PATCH] Windows friendly --- examples/mqtt-dashboard/dashboard/Makefile | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/examples/mqtt-dashboard/dashboard/Makefile b/examples/mqtt-dashboard/dashboard/Makefile index b9284a13f2..405bfae2d9 100644 --- a/examples/mqtt-dashboard/dashboard/Makefile +++ b/examples/mqtt-dashboard/dashboard/Makefile @@ -1,14 +1,12 @@ -PWD := $(shell pwd) -NPX ?= npx - -all: bundle.js main.css - make -C ../../../tutorials/http/http-server ARGS="-d $(PWD)" +all: + make -C ../../../tutorials/http/http-server ARGS="-d $(CURDIR)" # Bundle JS libraries (preact, preact-router, ...) into a single file bundle.js: curl -s https://npm.reversehttp.com/preact,preact/hooks,htm/preact,preact-router -o $@ # Create optimised CSS. Prerequisite: npm -g i tailwindcss tailwindcss-font-inter +NPX ?= npx main.css: index.html $(wildcard *.js) $(NPX) tailwindcss -o $@ --minify