summaryrefslogtreecommitdiff
path: root/archlinux/Makefile
blob: 98092942ae772df94648de48eb03852b7f839f22 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
# vim: shiftwidth=4 tabstop=4 noexpandtab
.PHONY: all clean install uninstall

SOFTWARE_NAME="xbackup"

all:
	tar --exclude-vcs --exclude ${SOFTWARE_NAME}/archlinux -czvf ${SOFTWARE_NAME}.tar.gz ../../${SOFTWARE_NAME}
	makepkg -cf

clean:
	rm -rf $(SOFTWARE_NAME).tar.gz
	rm -rf $(SOFTWARE_NAME)*.pkg.tar.*

install: all
	sudo pacman -U $(SOFTWARE_NAME)*.pkg.tar.*

uninstall:
	sudo pacman -R $(SOFTWARE_NAME)