From 771c7d5fe6120067987d266915e62c87feccd582 Mon Sep 17 00:00:00 2001 From: Ethan Paul Date: Thu, 6 Nov 2025 16:46:30 -0500 Subject: [PATCH] Reorganize makefile to allow script installation without container --- Makefile | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 137e113..805f137 100644 --- a/Makefile +++ b/Makefile @@ -3,12 +3,17 @@ BASE_IMAGE = registry.fedoraproject.org/fedora-toolbox BASE_IMAGE_VERSION = $(shell cat /etc/os-release | grep VERSION_ID | cut -d = -f 2) REPOSITORY = localhost/toolbox-dev-env -build: +.PHONY: container +container: podman build ./container/ --tag $(REPOSITORY):$(BUILD_COMMIT) --build-arg BASE_IMAGE="$(BASE_IMAGE)" --build-arg BASE_IMAGE_VERSION="$(BASE_IMAGE_VERSION)" --build-arg BUILD_COMMIT="$(BUILD_COMMIT)" podman tag $(REPOSITORY):$(BUILD_COMMIT) $(REPOSITORY):latest -install: build - +.PHONY: container +scripts: + mkdir --parents ~/.local/bin + curl -sSo /tmp/starship.sh https://starship.rs/install.sh + sh /tmp/starship.sh --yes --bin-dir=$(HOME)/.local/bin + mkdir --parents ~/.config/bashrc.d cp scripts.d/*.sh ~/.config/bashrc.d/ @@ -16,4 +21,7 @@ install: build cp completions.d/*.completion ~/.config/completions.d/ cp bashrc.sh ~/.bashrc - cp inputrc ~/.inputrc \ No newline at end of file + cp inputrc ~/.inputrc + cp starship.toml ~/.config/starship.toml + +install: container scripts;