summaryrefslogtreecommitdiffstats
path: root/Makefile
blob: 4953758ffc5f400453cb9dd62265ee2373cba9ee (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
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