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

View file

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