aboutsummarylogtreecommitdiffstats
path: root/Makefile
blob: 155c553f0af3beb864e9704e4b64f89dbe1127b0 (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
version = 3ab413613a6c3c4b78d3f3eb030068c0ea497a4e

help:
	@grep -E '(^[a-zA-Z_-]+:.*?##.*$$)|(^##)' $(MAKEFILE_LIST) | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[32m%-10s\033[0m %s\n", $$1, $$2}' | sed -e 's/\[32m##/[33m/'

build:clear ## Builds pakage
	makepkg -s

clear: ## Clears files
	rm -rf ./pkg
	rm -rf ./src
	rm -f ./*.deb
	rm -f ./*.zip
	rm -f ./shadow-alpha-*.pkg.tar
	rm -f ./shadow-alpha-*.pkg.tar.xz
	rm -f ./shadow-alpha-*.pkg.tar.zst
	rm -f ./*~
	rm -f shadow-alpha.zip
	rm -f *.AppImage
	rm -f *.yml

install:build ## Installs package with pacman
	sudo pacman -U shadow-alpha-*.pkg.tar

pkgsum: ## Updates pkgsum with updpkgsums
	updpkgsums

recup: ## Get git files
	wget -O INSTALLhttps://raw.githubusercontent.com/noah-witt/shadow-alpha/master/Arch/AUR/INSTALL
	wget -O wrapper.pl https://raw.githubusercontent.com/noah-witt/shadow-alpha/master/AppImage/wrapper.pl
	wget -O report.pl https://raw.githubusercontent.com/noah-witt/shadow-alpha/master/AppImage/report.pl

release:clear pkgsum srcinfo ## Release preparation
	git pull

sanity: ## Checking package sanity
	namcap shadow-alpha-*.pkg.tar

srcinfo: ## Generates .SRCINFO
	makepkg --printsrcinfo > .SRCINFO