diff options
author | Josh Walters <josh@joshwalters.com> | 2011-12-14 02:35:57 +0100 |
---|---|---|
committer | Josh Walters <josh@joshwalters.com> | 2011-12-14 02:35:57 +0100 |
commit | b6869036b7839b4540cee1114f44bc5c9b33d9c4 (patch) | |
tree | 8347cd87eb6b156685bf8c6e200c5fc984f07708 /Makefile | |
parent | 7dd58abb4878c3ff5a5c5cd41a1ee0d3ff2decd3 (diff) | |
download | BookCatalog-b6869036b7839b4540cee1114f44bc5c9b33d9c4.tar.gz BookCatalog-b6869036b7839b4540cee1114f44bc5c9b33d9c4.tar.xz |
Initial commit of code.
Diffstat (limited to 'Makefile')
-rw-r--r-- | Makefile | 26 |
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 |