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)
|
||||||
|
|
22
guix.scm
22
guix.scm
|
@ -6,8 +6,8 @@
|
||||||
|
|
||||||
(let
|
(let
|
||||||
((%source-dir (dirname (current-filename)))
|
((%source-dir (dirname (current-filename)))
|
||||||
(SJW (load "/home/Bureau/sjw/SJW.scm"))
|
(SJW (load "/home/Bureau/sjw/SJW.scm"))
|
||||||
(UnitJS (load "/home/Bureau/unitJS/guix.scm")))
|
(UnitJS (load "/home/Bureau/unitJS/guix.scm")))
|
||||||
(package
|
(package
|
||||||
(name "etoiles")
|
(name "etoiles")
|
||||||
(version "devel")
|
(version "devel")
|
||||||
|
@ -16,15 +16,17 @@
|
||||||
#:recursive? #t
|
#:recursive? #t
|
||||||
#:select? (git-predicate %source-dir)))
|
#:select? (git-predicate %source-dir)))
|
||||||
(build-system gnu-build-system)
|
(build-system gnu-build-system)
|
||||||
(native-inputs
|
(native-inputs
|
||||||
(list
|
(list
|
||||||
SJW
|
SJW
|
||||||
UnitJS))
|
UnitJS))
|
||||||
(arguments
|
(arguments
|
||||||
'(#:phases
|
`(#:make-flags
|
||||||
(modify-phases %standard-phases
|
,#~(list (string-append "PREFIX=" #$output))
|
||||||
(delete 'configure)
|
#:phases
|
||||||
(delete 'check))))
|
(modify-phases %standard-phases
|
||||||
|
(delete 'configure)
|
||||||
|
(delete 'check))))
|
||||||
(home-page "https://git.marvid.fr/Tissevert/Étoiles")
|
(home-page "https://git.marvid.fr/Tissevert/Étoiles")
|
||||||
(synopsis "A game webapp")
|
(synopsis "A game webapp")
|
||||||
(description
|
(description
|
||||||
|
|
Loading…
Reference in a new issue