From fb9106d60d1b4e3e390becf58d612a9f5160dc0b Mon Sep 17 00:00:00 2001 From: Nullspoon Date: Wed, 23 Jul 2014 23:24:40 -0600 Subject: Changed "File" class to "Path" Path seems more fitting given it's used for more than just a filename string. Converted note, main, and note_list to use new path class. Added .exists() method to path (wasn't in File). --- Makefile | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) (limited to 'Makefile') diff --git a/Makefile b/Makefile index 3e305ba..afc28cc 100644 --- a/Makefile +++ b/Makefile @@ -5,11 +5,14 @@ obj = obj/ all: if [[ ! -d obj ]]; then mkdir obj; fi - g++ $(debug) -c $(libs)file.cpp -o $(obj)/file.o - g++ $(debug) -c $(libs)config.cpp -o $(obj)/config.o - g++ $(debug) -c $(libs)note.cpp -o $(obj)/note.o - g++ $(debug) -c $(libs)note_list.cpp -o $(obj)/note_list.o - g++ $(debug) src/main.cpp $(obj)/*.o -o $(out) + g++ $(debug) -c $(libs)path.cpp -o $(obj)path.o + g++ $(debug) -c $(libs)config.cpp -o $(obj)config.o + g++ $(debug) -c $(libs)note.cpp -o $(obj)note.o + g++ $(debug) -c $(libs)note_list.cpp -o $(obj)note_list.o + g++ $(debug) src/main.cpp $(obj)*.o -o $(out) debug: make all debug="-g" + +clean: + rm -rvf $(obj)*.o -- cgit v1.2.3