summarylogtreecommitdiffstats
path: root/Makefile
blob: a2dd5f41ecb6d84026652958f080eb28e8772247 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
PKG_NAME := ttf-lxgw-heart-serif
AUR_GIT_URL := ssh://aur@aur.archlinux.org/${PKG_NAME}.git

.PHONY: all run update aur
all:
	@echo commands:
	@echo "   " aur    : Connect to AUR. Afterward you can run \'git push -u origin master\' to actually create a AUR repo.
	@echo "   " update : update checksum and SRCINFO
	@echo "   " run    : local test

aur:
	git remote add origin ${AUR_GIT_URL}
	git fetch

update: SHELL:=/bin/bash
update:
	@([[ $$(git ls-files) ]] && git clean -xdf ) || ( echo Please make your first stage or commit to ensure which files will not be deleted as cache files first && exit 1 )
	updpkgsums # update package integrity checksum
	makepkg --printsrcinfo > .SRCINFO

run:
	makepkg -si --clean