64cef1643b165762ec704425ce264fe1b21b8d61
[oota-llvm.git] / Makefile
1 #===- ./Makefile -------------------------------------------*- Makefile -*--===#
2
3 #                     The LLVM Compiler Infrastructure
4 #
5 # This file was developed by the LLVM research group and is distributed under
6 # the University of Illinois Open Source License. See LICENSE.TXT for details.
7
8 #===------------------------------------------------------------------------===#
9 LEVEL = .
10 DIRS = lib/System lib/Support utils lib tools 
11
12
13 ifneq ($(MAKECMDGOALS),tools-only)
14 DIRS += runtime
15 OPTIONAL_DIRS = examples projects
16 endif
17
18 EXTRA_DIST := llvm.spec include configure \
19               autoconf/AutoRegen.sh autoconf/LICENSE.TXT autoconf/README.TXT \
20               autoconf/aclocal.m4 autoconf/config.guess autoconf/config.sub \
21               autoconf/configure.ac autoconf/depcomp autoconf/install-sh \
22               autoconf/ltmain.sh autoconf/missing autoconf/mkinstalldirs \
23               autoconf/m4
24 include $(LEVEL)/Makefile.common
25
26 dist-hook::
27         @$(ECHO) Eliminating CVS directories from distribution
28         $(VERB) rm -rf `find $(TopDistDir) -type d -name CVS -print`
29
30 test :: all
31         cd test; $(MAKE)
32
33 tools-only: all