2022-07-22 22:35:28 +02:00
|
|
|
LIB = unitJS
|
|
|
|
WEBAPP = index.html style.css main.js
|
2022-07-23 18:32:27 +02:00
|
|
|
ROOT = $(PREFIX)/var/www
|
2022-07-22 22:35:28 +02:00
|
|
|
|
|
|
|
all: $(WEBAPP)
|
|
|
|
|
|
|
|
style.css: css
|
|
|
|
find $^ -type f -name '*.css' | xargs cat > $@
|
|
|
|
|
|
|
|
main.js: js/
|
|
|
|
sjw $(LIB:%=-I %) -o $@ $^
|
|
|
|
|
2022-07-23 18:32:27 +02:00
|
|
|
install: $(WEBAPP)
|
|
|
|
mkdir -p $(ROOT)
|
|
|
|
cp $(WEBAPP) $(ROOT)
|
2022-07-23 22:39:35 +02:00
|
|
|
|
|
|
|
refresh:
|
|
|
|
chromium `guix build -f guix.scm`/var/www/index.html
|