summarylogtreecommitdiffstats
path: root/Makefile
blob: 69cb7858b37c908f0d4aa0615da8626ff92a932e (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
40
41
.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 \
		lua \
		expected-lite \
		miniaudio