Fixup Makefiles.

This commit is contained in:
Dominik Pantůček 2025-03-31 19:45:15 +02:00
parent ec915c1f2f
commit a61fa0dc31
5 changed files with 10 additions and 4 deletions

1
.gitignore vendored
View file

@ -1 +1,2 @@
*~
brminv

4
Makefile Normal file
View file

@ -0,0 +1,4 @@
.PHONY: backend
backend:
make -C backend

1
backend/.gitignore vendored Normal file
View file

@ -0,0 +1 @@
frontend.scm

View file

@ -1,11 +1,11 @@
BRMINV_SOURCES=brminv.scm frontend.import.scm
brminv: $(BRMINV_SOURCES)
touch brminv
../brminv: $(BRMINV_SOURCES)
touch ../brminv
frontend.o: frontend.import.scm
frontend.import.scm: frontend.scm
.PHONY: frontend.scm
frontend.scm:
cd ../frontend && npm run build && csi -b -q ../tools/schemify-tree.scm -- ../frontend/dist frontend frontend-lookup
cd ../frontend && npm run build && cd ../backend && csi -b -q ../tools/schemify-tree.scm -- ../frontend/dist frontend frontend-lookup

View file

@ -14,7 +14,7 @@
(cdr args)))))
(define args (get-argv))
(when (not (eq? (length args) 1))
(when (< (length args) 1)
(display "usage: schemify-tree dir")
(newline)
(exit 1))