From: Michael D. Lowis Date: Sat, 10 Mar 2018 03:42:23 +0000 (-0500) Subject: stripped down the makefile X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;ds=inline;p=archive%2Ftide-hl.git stripped down the makefile --- 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 $@ $<