Add gen-update-targets.sh to parse flake.nix and generate grouped update targets (update-kyle, update-mc). Makefile now has install (copy) and link (symlink) targets for rebuild-nixos. Also fix mc flake input URLs to use /mc/ org path. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
19 lines
385 B
Makefile
19 lines
385 B
Makefile
BIN_DIR := ${HOME}/.local/bin
|
|
|
|
.PHONY: install link update-targets
|
|
|
|
install: $(BIN_DIR)
|
|
cp script/rebuild-nixos $(BIN_DIR)/
|
|
chmod +x $(BIN_DIR)/rebuild-nixos
|
|
|
|
link: $(BIN_DIR)
|
|
ln -sf $(CURDIR)/script/rebuild-nixos $(BIN_DIR)/
|
|
|
|
$(BIN_DIR):
|
|
mkdir -p $(BIN_DIR)
|
|
|
|
update-targets.mk: flake.nix script/gen-update-targets.sh
|
|
script/gen-update-targets.sh > $@
|
|
|
|
-include update-targets.mk
|