summarylogtreecommitdiffstats
path: root/makefile
blob: cf79350830677b96c5414cf31a6c8c5025ae8424 (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
42
43
.ONESHELL:

DIR=cicada
PKG=cicada-git

all:
	@
	make build &&\
	make ball
build:
	@
	makepkg -sf

ball:
	@
	mkaurball -f

upload:
	@
	aurupload $(PKG)-*.src.tar.gz

install:
	@
	pacman -U $(PKG)-*.pkg.tar.xz

clean*~:
	@
	rm -f *~ */*~ */*/*~ */*/*/*~ */*/*/*/*~  */*/*/*/*/*~

clean*.bin:
	@
	rm -f *.bin */*.bin */*/*.bin */*/*/*.bin */*/*/*/*.bin	 */*/*/*/*/*.bin

clean:
	@
	make clean*~
	make clean*.bin
	rm $(PKG)-*.pkg.tar.xz
	rm $(PKG)-*.src.tar.gz
	rm -rf src
	rm -rf pkg
	rm -rf $(DIR)
	echo -e "\e[33;1m [ok] clean directory \e[0m"