Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

make makefile applicable. #1717

Merged
merged 1 commit into from
Dec 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
34 changes: 21 additions & 13 deletions Makefile
Original file line number Diff line number Diff line change
@@ -1,28 +1,36 @@
LISP ?= ${shell which sbcl}
LISP ?= sbcl --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit
PREFIX ?= /usr/local

ncurses:
qlot install
$(LISP) --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/build-ncurses.lisp
$(LISP) --load .qlot/setup.lisp \
--load scripts/build-ncurses.lisp

sdl2:
qlot install
$(LISP) --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/build-sdl2.lisp
$(LISP) --load .qlot/setup.lisp \
--load scripts/build-sdl2.lisp

sdl2-ncurses:
qlot install
$(LISP) --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/build-sdl2-ncurses.lisp
$(LISP) --load .qlot/setup.lisp \
--load scripts/build-sdl2-ncurses.lisp

server:
qlot install
$(LISP) --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/build-server.lisp
$(LISP) --load .qlot/setup.lisp \
--load scripts/build-server.lisp

install:
qlot install
$(LISP) --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/build-sdl2-ncurses.lisp
sudo install -m 755 lem /usr/local/bin/
sudo install -m 644 scripts/install/lem.svg /usr/share/icons/hicolor/scalable/apps/
sudo gtk-update-icon-cache /usr/share/icons/hicolor
sudo desktop-file-install --dir=/usr/share/applications scripts/install/lem.desktop
lem: sdl2-ncurses

install-bin: lem
install -m 755 lem $(PREFIX)/bin

# TODO: on the fly edit lem.desktop depends on $(PREFIX)
install: install-bin
install -m 644 scripts/install/lem.svg /usr/share/icons/hicolor/scalable/apps/
gtk-update-icon-cache /usr/share/icons/hicolor
desktop-file-install --dir=/usr/share/applications scripts/install/lem.desktop
@echo "+--------------------------------+"
@echo "| Lem installation complete! |"
@echo "+--------------------------------+"
Expand All @@ -33,7 +41,7 @@ test:

doc:
qlot install
$(LISP) --dynamic-space-size 4GiB --noinform --no-sysinit --no-userinit --load .qlot/setup.lisp --load scripts/generate-documentation-tests.lisp --eval '(progn (lem-documentation-mode/tests::generate-markdown-file "test.md" :test) (quit))'
$(LISP) --load .qlot/setup.lisp --load scripts/generate-documentation-tests.lisp --eval '(progn (lem-documentation-mode/tests::generate-markdown-file "test.md" :test) (quit))'

update:
git pull
Expand Down
Loading