-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
69 lines (52 loc) · 1.07 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
default: help
.PHONY: default
help:
@echo 'Usage:'
@echo ' $$ make [action]'
@echo
@echo 'Example:'
@echo ' $$ make'
@echo ' $$ make help'
@echo
@echo ' $$ make prepare'
@echo
@echo ' $$ make build'
@echo
@echo ' $$ make install'
@echo
.PHONY: help
##
## * https://wiki.archlinux.org/title/Creating_packages
## * https://wiki.archlinux.org/title/Arch_User_Repository
## * https://archlinux.org/groups/x86_64/base-devel/
## * https://wiki.archlinux.org/title/pacman
## * https://wiki.archlinux.org/title/makepkg
## * https://wiki.archlinux.org/title/PKGBUILD
## * https://wiki.archlinux.org/title/Arch_package_guidelines
##
prepare:
sudo pacman -Sy --needed base-devel
.PHONY: prepare
build:
./build.sh
.PHONY: build
install:
# sudo pacman -U --needed *.zst
sudo pacman -U --needed package/*.zst
.PHONY: install
reinstall:
# sudo pacman -U *.zst
sudo pacman -U package/*.zst
.PHONY: reinstall
uninstall:
sudo pacman -R cordwm
.PHONY: uninstall
clean:
rm -f *.zst
rm -rf pkg
rm -rf src
rm -rf package
.PHONY: clean
list:
pacman -Ql cordwm -q
.PHONY: list