Added make targets to make easier to run.

Specifically setup to work with Emac's task runner tooling.
This commit is contained in:
James Patrick 2022-03-07 22:00:10 -05:00
parent 331788d345
commit 4926bfba4e

17
makefile Normal file
View File

@ -0,0 +1,17 @@
# -*- mode: makefile-gmake; -*-
ifeq ($(shell $(MAKE) -v | grep GNU),)
$(error I need gnumake not bsdmake)
endif
REQUIRED_V := 3.82
ifneq ($(REQUIRED_V),$(firstword $(sort $(MAKE_VERSION) $(REQUIRED_V))))
$(error For .ONESHELL to work I need at least version $(REQUIRED_V))
endif
.ONESHELL:
switch:
sudo nixos-rebuild switch --flake .
upgrade:
sudo nix-channel --update
nix flake update