diff options
Diffstat (limited to 'makefile')
-rw-r--r-- | makefile | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/makefile b/makefile new file mode 100644 index 0000000..d177b65 --- /dev/null +++ b/makefile @@ -0,0 +1,24 @@ +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: /usr/bin/todo + +uninstall: /usr/bin/todo + rm /usr/bin/todo + |