summaryrefslogtreecommitdiff
path: root/Makefile
diff options
context:
space:
mode:
authorNullspoon <nullspoon@iohq.net>2014-07-23 23:24:40 -0600
committerNullspoon <nullspoon@iohq.net>2014-07-23 23:24:40 -0600
commitfb9106d60d1b4e3e390becf58d612a9f5160dc0b (patch)
tree4a1499cc8a47d9103b34be1f5083d88fc3ae909b /Makefile
parent0fd4ebe3f2cde2981045995d410940b83b0ca87d (diff)
downloadnoteless-fb9106d60d1b4e3e390becf58d612a9f5160dc0b.tar.gz
noteless-fb9106d60d1b4e3e390becf58d612a9f5160dc0b.tar.xz
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).
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile13
1 files changed, 8 insertions, 5 deletions
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

Generated by cgit