summaryrefslogtreecommitdiffstats
path: root/Makefile
diff options
context:
space:
mode:
authorJosh Walters <josh@joshwalters.com>2011-12-14 02:35:57 +0100
committerJosh Walters <josh@joshwalters.com>2011-12-14 02:35:57 +0100
commitb6869036b7839b4540cee1114f44bc5c9b33d9c4 (patch)
tree8347cd87eb6b156685bf8c6e200c5fc984f07708 /Makefile
parent7dd58abb4878c3ff5a5c5cd41a1ee0d3ff2decd3 (diff)
downloadBookCatalog-b6869036b7839b4540cee1114f44bc5c9b33d9c4.tar.gz
BookCatalog-b6869036b7839b4540cee1114f44bc5c9b33d9c4.tar.xz
Initial commit of code.
Diffstat (limited to 'Makefile')
-rw-r--r--Makefile26
1 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..4953758
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,26 @@
+# Makefile for BookCatalog
+
+NAME = BookCatalog
+ECHO = @echo
+SRC_DIR = src
+LIB_DIR = lib
+BIN_DIR = bin
+
+all: $(NAME)
+
+$(NAME): $(BIN_DIR)
+ $(ECHO) "Building $@"
+ @javac -cp "./lib/*" src/com/joshwalters/bookcatalog/*.java -sourcepath src/com/joshwalters/bookcatalog/ src/com/joshwalters/bookcatalog/bookdatabase/*.java src/com/joshwalters/bookcatalog/table/*.java src/com/joshwalters/bookcatalog/sound/*.java src/com/joshwalters/bookcatalog/isbnlookup/*.java -d ./bin
+ $(ECHO) "Built $(NAME)"
+
+$(BIN_DIR):
+ $(ECHO) "Folder '$(BIN_DIR)' does not exist, creating."
+ @mkdir $(BIN_DIR)
+
+clean:
+ @rm -rf bin/*
+ $(ECHO) "Project has been cleaned"
+
+new:
+ make clean
+ make