Fix output dir for guix build
This commit is contained in:
parent
3d9bc23a91
commit
c6a84321d4
2 changed files with 16 additions and 12 deletions
6
Makefile
6
Makefile
|
@ -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)
|
||||||
|
|
4
guix.scm
4
guix.scm
|
@ -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))))
|
||||||
|
|
Loading…
Reference in a new issue