summarylogtreecommitdiffstats
path: root/Makefile
blob: 0e3e851b824ff930ee5660fe5790936594fbcb37 (plain)
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
.PHONY: all

all: clean rebuild srcinfo chroot-rebuild

rebuild:
	makepkg -s


chroot-rebuild:
	@ [ -n "${CHROOT}" ] && \
		echo "Creating chroot in ${CHROOT}" && \
		[ -d "${CHROOT}/root" ] || mkarchroot "${CHROOT}/root" base-devel && \
		arch-nspawn "${CHROOT}/root" pacman -Syu && \
		makechrootpkg -c -r "${CHROOT}" || \
		echo "export the CHROOT environment variable if you want to use chroot-rebuild"

srcinfo:
	makepkg --printsrcinfo > .SRCINFO

clean:
	rm -rf \
		pkg \
		src \
		chatterino2 \
		chatterino2-*.pkg.tar.xz \
		chatterino2-*.pkg.tar.zst \
		chatterino2-*.log \
		libcommuni \
		humanize \
		crash-handler \
		settings \
		signals \
		serialize \
		rapidjson \
		qtkeychain \
		sanitizers-cmake \
		websocketpp \
		magic_enum \
		miniaudio