summarylogtreecommitdiffstats
path: root/Makefile
blob: 85071e3e50860201072eac4717c9e5566ccb55a2 (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
default: build

prep: clean namcap
	rm -rf Gemfile.lock
	bundle install
	# Fetches latest version info, updates
	# PKGBUILD, and creates a .commit_msg
	bundle exec ruby update.rb

build: prep
	makepkg
	makepkg --printsrcinfo > .SRCINFO

# .commit_msg is created by update.rb,
# if there is a new version.
commit: .commit_msg
	echo "Committing: "
	cat .commit_msg
	git add .SRCINFO
	git add PKGBUILD
	git commit -S -s -F .commit_msg
	rm .commit_msg

clean:
	git clean -fd
	rm -rf pkg src *.deb *.tar.xz

namcap:
	namcap PKGBUILD

# too many failures we can't correct due to PKGBUILD design
shellcheck:
	shellcheck PKGBUILD

vet: namcap shellcheck