Skip to content

Commit

Permalink
Improve Makefile style
Browse files Browse the repository at this point in the history
  • Loading branch information
nspin committed Dec 28, 2023
1 parent 069a4fd commit df744e3
Showing 1 changed file with 2 additions and 9 deletions.
11 changes: 2 additions & 9 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -10,24 +10,15 @@ endif

ifneq ($(J),)
jobs_args := -j$(J)
else
jobs_args :=
endif

ifneq ($(CORES),)
cores_args := --cores $(CORES)
else
cores_args :=
endif

out := out

nix_args := $(keep_going_args) $(jobs_args) $(cores_args)

nix_build := nix-build $(nix_args)

nix_shell := nix-shell $(nix_args)

run_in_nix_shell := $(nix_shell) --run

ifeq ($(IN_NIX_SHELL_FOR_MAKEFILE),)
Expand All @@ -39,6 +30,8 @@ else
run_in_nix_shell := $(SHELL) -c
endif

out := out

.PHONY: none
none:

Expand Down

0 comments on commit df744e3

Please sign in to comment.