aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: c033c8aa64549c23d5c6168b27e4fafd76c1ff81 (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
all: todo

todo: todo.o
	g++ todo.o -o todo

todo.o: todo.cpp
	g++ -std=c++11  -c todo.cpp -o todo.o

.PHONY: clean mrproper

clean:
	rm *.o
	rm todo

mrproper: clean
	rm todo

mrpropest: mrproper
	rm .todo.txt

/usr/bin/todo: todo
	cp ./todo /usr/bin/

install: todo
	[ -e /usr/bin/todo ] && sudo cp todo /usr/bin/todo
	echo 'Installation success'

uninstall: /usr/bin/todo
	rm /usr/bin/todo