From 36b8a432411cd45a6b59c812bf9c5b1067f2fd5b Mon Sep 17 00:00:00 2001 From: "Michael D. Lowis" Date: Fri, 9 Mar 2018 22:42:23 -0500 Subject: [PATCH] stripped down the makefile --- Makefile | 34 +++++++++++----------------------- 1 file changed, 11 insertions(+), 23 deletions(-) diff --git a/Makefile b/Makefile index a3f1681..2eb0af9 100644 --- a/Makefile +++ b/Makefile @@ -1,33 +1,21 @@ -# Toolchain Configuration -#------------------------------------------------------------------------------- -OC = ocamlopt -BINEXT = bin -OBJEXT = cmx -INCS = -I . - -# Target Definitions -#------------------------------------------------------------------------------- -.PHONY: all clean docs deps +.PHONY: all clean +.SUFFIXES: .ml .mll .cmx all: tide-hl +clean: + $(RM) tide-hl lex_*.ml *.cm* *.o + tide-hl: colormap.ml lex_cpp.ml lex_ruby.ml lex_ocaml.ml main.ml ocamlopt $(OLDFLAGS) $(INCS) -o $@ $^ -clean: - $(RM) tide-hl *.cm* *.o *.a +.ml.cmx : + ocamlopt -c -I . -o $@ $< -deps: deps.mk -deps.mk: $(wildcard *.ml* lib/*.ml* tests/*.ml*) +.mll.ml : + ocamllex $(OLEXFLAGS) -o $@ $< + +deps.mk: $(wildcard *.ml*) ocamldep -I . -all -one-line $^ > deps.mk -include deps.mk -# Implicit Rule Definitions -#------------------------------------------------------------------------------- -.SUFFIXES: .c .o .ml .mli .mll .cmo .cmx .cmi .cma .cmxa .byte .bin -.ml.cmx : - ocamlopt -c $(OFLAGS) $(INCS) -o $@ $< -.mli.cmi : - $(OC) -c $(OFLAGS) $(INCS) -o $@ $< -.mll.ml : - ocamllex $(OLEXFLAGS) -o $@ $< -- 2.49.0