blob: 772906b0c299b24e1ef63c688e0e1079f699cd88 (
plain) (
blame)
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
27
|
GPP=gpp
JAVAC=javac
PP = comparable
SRC = $(shell find src | grep '\.java$$')
PPD = $(shell find src | grep '\.java$$' | sed -e 's:^src:obj:')
OBJ = $(shell find src | grep '\.java$$' | sed -e 's:^src:obj:' | sed -e 's:java$$:class:')
.PHONY: all
all: $(OBJ)
obj/%.class: obj/%.java
$(JAVAC) '-Xlint:all,-cast' -s obj -d obj -cp obj "$<"
obj/%.java: src/%.java $(foreach F, $(PP), src/$(F))
mkdir -p "$(shell dirname "$@")"
$(GPP) -s £ < "$<" > "$@"
obj/algorithms/searching/MultibinarySearch.class: obj/algorithms/searching/BinarySearch.class
.PHONY: clean
clean:
-rm -r -- bin obj
|