update source to use our brand new source generator. Update automakes.
[apps/madmutt.git] / tools / Makefile
diff --git a/tools/Makefile b/tools/Makefile
new file mode 100644 (file)
index 0000000..ec3e895
--- /dev/null
@@ -0,0 +1,14 @@
+# automake sucks, badly
+all: ../lib-mime/mime-token.h \
+    ../lib-lua/lua-token.h \
+    ../lib-lua/madmutt.li
+
+../%: ; $(MAKE) -C $(@D) $(@F)
+
+cpkg2c: cpkg2c.mll
+       ocamllex $<
+       $(if $(shell which ocamlopt),ocamlopt -o $@ str.cmxa,ocamlc -o $@ str.cma) $@.ml
+       @$(RM) cpkg2c.ml cpkg2c.c* cpkg2c.o
+
+clean:
+       $(RM) cpkg2c