aboutsummaryrefslogtreecommitdiff
path: root/makefile
blob: 29ff7badba9c6730bcc3643790fa1a6f99b9aa84 (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
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

mrproper: clean
	rm todo

/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