diff options
Diffstat (limited to '')
-rw-r--r-- | Makefile | 24 | ||||
-rw-r--r-- | src/algorithms/arrays/MinMax.java | 2 |
2 files changed, 26 insertions, 0 deletions
diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..443ad69 --- /dev/null +++ b/Makefile @@ -0,0 +1,24 @@ +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) -s obj -d obj -cp obj "$<" + +obj/%.java: src/%.java $(foreach F, $(PP), src/$(F)) + mkdir -p "$(shell dirname "$@")" + $(GPP) -s £ < "$<" > "$@" + + +.PHONY: clean +clean: + -rm -r -- bin obj + diff --git a/src/algorithms/arrays/MinMax.java b/src/algorithms/arrays/MinMax.java index ccdbc56..cd86460 100644 --- a/src/algorithms/arrays/MinMax.java +++ b/src/algorithms/arrays/MinMax.java @@ -16,6 +16,8 @@ */ package algorithms.arrays; +import java.util.*; + /** * Class for finding the minimum and maximum values in one iteration |