Fix output dir for guix build

This commit is contained in:
Tissevert 2022-07-23 18:32:27 +02:00
parent 3d9bc23a91
commit c6a84321d4
2 changed files with 16 additions and 12 deletions

View file

@ -1,5 +1,6 @@
LIB = unitJS LIB = unitJS
WEBAPP = index.html style.css main.js WEBAPP = index.html style.css main.js
ROOT = $(PREFIX)/var/www
all: $(WEBAPP) all: $(WEBAPP)
@ -9,5 +10,6 @@ style.css: css
main.js: js/ main.js: js/
sjw $(LIB:%=-I %) -o $@ $^ sjw $(LIB:%=-I %) -o $@ $^
install: install: $(WEBAPP)
cp $(WEBAPP) $(DESTDIR) mkdir -p $(ROOT)
cp $(WEBAPP) $(ROOT)

View file

@ -21,7 +21,9 @@
SJW SJW
UnitJS)) UnitJS))
(arguments (arguments
'(#:phases `(#:make-flags
,#~(list (string-append "PREFIX=" #$output))
#:phases
(modify-phases %standard-phases (modify-phases %standard-phases
(delete 'configure) (delete 'configure)
(delete 'check)))) (delete 'check))))