Skip to content

Commit

Permalink
makefile: Minor refactor.
Browse files Browse the repository at this point in the history
  • Loading branch information
aadcg committed Mar 12, 2024
1 parent 0ab550c commit 0202594
Showing 1 changed file with 9 additions and 6 deletions.
15 changes: 9 additions & 6 deletions makefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,6 @@ endif

LISP_FLAGS ?= $(SBCL_FLAGS) --no-userinit --non-interactive

FLATPAK_COMMAND = flatpak
FLATPAK_BUILDER = flatpak-builder
FLATPAK_APP_ID = engineer.atlas.Nyxt
FLATPAK_MANIFEST := build-scripts/$(FLATPAK_APP_ID).yaml
FLATPAK_EXPORT_REPOSITORY = _build/nyxt-flatpak-repository

NYXT_SUBMODULES ?= true
NYXT_RENDERER ?= gi-gtk
NASDF_USE_LOGICAL_PATHS ?= true
Expand All @@ -39,6 +33,7 @@ lisp_eval:=$(LISP) $(LISP_FLAGS) \
--eval '(asdf:load-asd "$(makefile_dir)/libraries/nasdf/nasdf.asd")' \
--eval '(asdf:load-asd "$(makefile_dir)/nyxt.asd")' \
--eval

lisp_quit:=--eval '(uiop:quit)'

## asdf:load-system is a bit slow on :nyxt/$(NYXT_RENDERER)-application, so we
Expand Down Expand Up @@ -75,6 +70,14 @@ clean-submodules:
clean: clean-submodules
rm -rf build

# Flatpak

FLATPAK_COMMAND = flatpak
FLATPAK_BUILDER = flatpak-builder
FLATPAK_APP_ID = engineer.atlas.Nyxt
FLATPAK_MANIFEST := build-scripts/$(FLATPAK_APP_ID).yaml
FLATPAK_EXPORT_REPOSITORY = _build/nyxt-flatpak-repository

.PHONY: flatpak-build
flatpak-build:
@$(FLATPAK_BUILDER) --force-clean --user --install --default-branch=local build $(FLATPAK_MANIFEST)
Expand Down

0 comments on commit 0202594

Please sign in to comment.