permit multiline comments and strings in macros
[bpt/coccinelle.git] / Makefile.common
1 # Some common definitions that factored out many reoccurring patterns
2 # in the Makefiles of the project. This file is included at the bottom
3 # so that its implicit rules take precedence over implicit rules in
4 # the file that includes this one.
5
6 # this is a "hack" so that we do not have to pass --native to ocamldep
7 # and rebuild .depend when building the native version. Since we have
8 # .ml files without .mli files, building the .cmo *and .cmx file could
9 # cause the .cmi file to be build twice, which could cause trouble when
10 # the .cmi file is read by other compilation steps (especially when
11 # building in parallel).
12 export BUILD_OPT
13 ifeq ($(BUILD_OPT),yes)
14 %.cmo: %.ml
15 %.cmo: %.cmx
16 @echo "skipped building $@ in optimizing mode: $< will be build instead."
17 endif
18
19
20 # If this variable is set, then 'make distclean' should not remove certain
21 # generated files like the generated parsers, and documentation.
22 export KEEP_GENERATED