Permalink
Browse files

Little more cleanup of euler makefile

  • Loading branch information...
1 parent a87e31d commit 69844b78d8e98076056e9d69f68e8ad4546f22b0 @thelema thelema committed Jun 6, 2010
Showing with 3 additions and 2 deletions.
  1. +3 −2 examples/euler/Makefile
View
@@ -2,14 +2,15 @@
SOURCES = $(wildcard euler*.ml)
TARGETS = $(SOURCES:.ml=.byte)
+LIBRARIES = mathlib.ml
all: $(TARGETS)
clean:
rm *.byte *.native *.cmi *.cmo
-%.byte: mathlib.ml %.ml
+%.byte: $(LIBRARIES) %.ml
ocamlfind ocamlc -thread -package threads,batteries -linkpkg $^ -o $@
-%.native: mathlib.ml %.ml
+%.native: $(LIBRARIES) %.ml
ocamlfind ocamlc -thread -package threads,batteries -linkpkg $^ -o $@

0 comments on commit 69844b7

Please sign in to comment.