]> git.mdlowis.com Git - archive/tide-hl.git/commitdiff
stripped down the makefile master
authorMichael D. Lowis <mike@mdlowis.com>
Sat, 10 Mar 2018 03:42:23 +0000 (22:42 -0500)
committerMichael D. Lowis <mike@mdlowis.com>
Sat, 10 Mar 2018 03:42:23 +0000 (22:42 -0500)
Makefile

index a3f16811cebed0d9f3799b0343bfed477f0504c8..2eb0af9e4680a2ef38ecd0bfcc04b8b03c0122b4 100644 (file)
--- 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 $@ $<