Fedora Setup
This commit is contained in:
46
Makefile
46
Makefile
@@ -1,19 +1,37 @@
|
||||
# Makefile
|
||||
|
||||
REBOOT_MARKER := .setup-reboot-required
|
||||
|
||||
# Default target
|
||||
all: stow
|
||||
|
||||
# Full Setup
|
||||
setup:
|
||||
bash ./scripts/base.sh
|
||||
bash ./scripts/node.sh
|
||||
bash ./scripts/go.sh
|
||||
bash ./scripts/rust.sh
|
||||
bash ./scripts/python.sh
|
||||
bash ./scripts/r.sh
|
||||
make clean
|
||||
make stow
|
||||
@echo "Full setup completed."
|
||||
@rm -f $(REBOOT_MARKER); \
|
||||
bash ./scripts/base.sh; \
|
||||
if [ -f $(REBOOT_MARKER) ]; then \
|
||||
rm -f $(REBOOT_MARKER); \
|
||||
echo "Package layering finished. Reboot, then rerun make setup."; \
|
||||
exit 0; \
|
||||
fi; \
|
||||
bash ./scripts/node.sh; \
|
||||
bash ./scripts/go.sh; \
|
||||
bash ./scripts/rust.sh; \
|
||||
bash ./scripts/python.sh; \
|
||||
if [ -f $(REBOOT_MARKER) ]; then \
|
||||
rm -f $(REBOOT_MARKER); \
|
||||
echo "Package layering finished. Reboot, then rerun make setup."; \
|
||||
exit 0; \
|
||||
fi; \
|
||||
bash ./scripts/r.sh; \
|
||||
if [ -f $(REBOOT_MARKER) ]; then \
|
||||
rm -f $(REBOOT_MARKER); \
|
||||
echo "Package layering finished. Reboot, then rerun make setup."; \
|
||||
exit 0; \
|
||||
fi; \
|
||||
$(MAKE) clean; \
|
||||
$(MAKE) stow; \
|
||||
echo "Full setup completed."
|
||||
|
||||
base:
|
||||
bash ./scripts/base.sh
|
||||
@@ -34,9 +52,6 @@ update:
|
||||
git pull origin main
|
||||
make setup
|
||||
|
||||
base:
|
||||
bash ./scripts/base.sh
|
||||
|
||||
# Language Setups
|
||||
node:
|
||||
bash ./scripts/node.sh
|
||||
@@ -72,4 +87,9 @@ test-ubuntu:
|
||||
test-arch:
|
||||
@echo "Spawning Arch Container..."
|
||||
docker run -it --rm -e TERM=xterm-256color -v $(PWD):/root/dotfiles archlinux:latest \
|
||||
bash -c "pacman -Sy --noconfirm base-devel git make sudo && cd /root/dotfiles && make setup"
|
||||
bash -c "pacman -Sy --noconfirm base-devel git make sudo && cd /root/dotfiles && make setup"
|
||||
|
||||
test-fedora:
|
||||
@echo "Spawning Fedora Container..."
|
||||
docker run -it --rm -e TERM=xterm-256color -v $(PWD):/root/dotfiles fedora:latest \
|
||||
bash -c "dnf install -y git make sudo curl which passwd procps-ng && cd /root/dotfiles && make setup"
|
||||
|
||||
Reference in New Issue
Block a user