-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
36 lines (27 loc) · 1.04 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
TARGET := sandsifterOS
ROOTPATH := ./$(TARGET)/airootfs/root
TMPPATH := /tmp/archiso-tmp
URL := https://github.com/jakiki6/sandsifter.git
.DEFAULT_GOAL := help
help:
@echo "Usage: make <target>"
@echo "Targets:"
@echo " help Print this message"
@echo " prepare Install required dependencies and clone the sandsifter repository"
@echo " build Build the Arch Linux ISO with the included sandsifter tool"
@echo " all Run both prepare and build targets in sequence"
@echo " clean Remove temporary files and sandsifter repository from the project"
@echo " remove Uninstall the archiso package"
@echo " prune Perform both clean and remove operations"
prepare:
sudo pacman -S archiso --needed --noconfirm
git clone $(URL) $(ROOTPATH)/sandsifter
build:
sudo mkarchiso -v -w $(TMPPATH) ./$(TARGET) -o ./
all: prepare build
clean:
sudo rm -rf out $(ROOTPATH)/sandsifter $(TMPPATH)
remove:
sudo pacman -Rs archiso --noconfirm
prune: clean remove
.PHONY: help prepare build all clean remove prune