ec3e8955061e3cdeec1aef19ebfd2f49b2a21ec7
[apps/madmutt.git] / tools / Makefile
1 # automake sucks, badly
2 all: ../lib-mime/mime-token.h \
3     ../lib-lua/lua-token.h \
4     ../lib-lua/madmutt.li
5
6 ../%: ; $(MAKE) -C $(@D) $(@F)
7
8 cpkg2c: cpkg2c.mll
9         ocamllex $<
10         $(if $(shell which ocamlopt),ocamlopt -o $@ str.cmxa,ocamlc -o $@ str.cma) $@.ml
11         @$(RM) cpkg2c.ml cpkg2c.c* cpkg2c.o
12
13 clean:
14         $(RM) cpkg2c