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