nixos-image-thinkpad-t14s-gen6/Makefile
2024-07-28 23:28:50 +00:00

16 lines
294 B
Makefile

COMMIT := $(shell git rev-parse --short HEAD)
IMAGE := nixos-thinkpad-t14s-gen6-$(COMMIT).img
TARGET := /dev/sdX
$(IMAGE).xz: $(IMAGE)
xz -k $(IMAGE)
$(IMAGE):
sudo ./scripts/make-image.sh $(IMAGE)
flash: $(IMAGE) $(TARGET)
sudo dd if=$(IMAGE) of=$(TARGET)
sudo parted -sf $(TARGET) p