12 lines
444 B
Makefile
12 lines
444 B
Makefile
.PHONY: nixos all help
|
|
|
|
nixos-image:
|
|
test `which packer` || { printf "Please install Packer from https://packer.io/\n"; exit 1; }; \
|
|
vars=""; \
|
|
test "$(VERSION)" && vars=" -var \"nixos-version=$(VERSION)\""; \
|
|
test "$(BUILD)" && vars="$$vars -var \"build-version=$(BUILD)\""; \
|
|
eval packer build "$$vars" .
|
|
|
|
all help:
|
|
@printf "Please do not call this Makefile directly, use the wrapper located at the project root\n"
|