Initial commit
This commit is contained in:
19
Makefile
Normal file
19
Makefile
Normal file
@@ -0,0 +1,19 @@
|
||||
# Special variables
|
||||
.DEFAULT_GOAL := help # Set default target to run
|
||||
.SILENT: # Disable printing recipes at runtime
|
||||
.ONESHELL: # Run target recipes in one shell invocation
|
||||
.PHONY: build-image \ # Phony targets
|
||||
clean \
|
||||
help
|
||||
|
||||
help: ## Shows this help prompt.
|
||||
egrep -h '\s##\s' $(MAKEFILE_LIST) \
|
||||
| sort \
|
||||
| awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-20s\033[0m %s\n", $$1, $$2}'
|
||||
|
||||
clean:
|
||||
rm -f result
|
||||
|
||||
build-image: clean ## Builds Linode campatible NixOS disk image.
|
||||
nix build ".#nixosConfigurations.linode-image.config.system.build.raw"
|
||||
|
||||
Reference in New Issue
Block a user