aboutsummaryrefslogtreecommitdiffstats
path: root/os/linux/Makefile
blob: 44de839f3e50398ca869afe41e0d6df37f685f6d (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
yetihack:
	cd src && make

package:
	make clean
	zip package/yetihack-source.zip `pwd`
	make yetihack
	strip src/yetihack
	sudo chown root:root src/yetihack
	-sudo rm os/debian/deb/usr/bin/yetihack
	sudo ln src/yetihack os/debian/deb/usr/bin/
	dpkg-deb --build os/debian/deb package/yetihack.deb
	cd package && sudo alien -r yetihack.deb
	zip package/yetihack.zip src/yetihack

install: yetihack
	cp src/yetihack /usr/local/bin/

clean:
	-rm src/*.o
	-rm src/yetihack
	-rm package/*
	-sudo rm os/debian/deb/usr/bin/yetihack