1 | # Copyright (C) 2006 International Business Machines and others. |
---|
2 | # All Rights Reserved. |
---|
3 | # This file is distributed under the Eclipse Public License. |
---|
4 | |
---|
5 | ## $Id: Makefile.am 1565 2010-12-30 22:24:48Z tkr $ |
---|
6 | |
---|
7 | # Author: Andreas Waechter IBM 2006-04-13 |
---|
8 | |
---|
9 | AUTOMAKE_OPTIONS = foreign |
---|
10 | |
---|
11 | EXTRA_DIST = doxydoc/doxygen.conf |
---|
12 | |
---|
13 | ######################################################################## |
---|
14 | # Subdirectories # |
---|
15 | ######################################################################## |
---|
16 | |
---|
17 | # subdirs is set by configure as the list of all subdirectories to recurse |
---|
18 | # into |
---|
19 | SUBDIRS = $(subdirs) |
---|
20 | |
---|
21 | ######################################################################## |
---|
22 | # Extra Targets # |
---|
23 | ######################################################################## |
---|
24 | |
---|
25 | test: all |
---|
26 | cd Cbc; $(MAKE) test |
---|
27 | |
---|
28 | unitTest: test |
---|
29 | |
---|
30 | tests: all |
---|
31 | for dir in $(subdirs); do \ |
---|
32 | if test -r $$dir/test/Makefile; then \ |
---|
33 | (cd $$dir; $(MAKE) test) \ |
---|
34 | fi; \ |
---|
35 | done |
---|
36 | |
---|
37 | unitTests: tests |
---|
38 | |
---|
39 | # Generate doxygen doc'n in subdirectories (except @PACKAGE_NAME@) if a doxydoc |
---|
40 | # directory is present, then do the base, if present. |
---|
41 | |
---|
42 | doxydoc: |
---|
43 | for dir in $(subdirs) ; do \ |
---|
44 | if test $$dir != @PACKAGE_NAME@ && test -r $$dir/doxydoc ; then \ |
---|
45 | (cd $$dir ; $(MAKE) doxydoc) \ |
---|
46 | fi ; \ |
---|
47 | done ; \ |
---|
48 | if test -r doxydoc/doxygen.conf ; then \ |
---|
49 | doxygen doxydoc/doxygen.conf ; \ |
---|
50 | fi |
---|
51 | |
---|
52 | clean-doxydoc: |
---|
53 | ( cd doxydoc ; rm -rf html *.log *.tag ) |
---|
54 | |
---|
55 | # DocInstallDir is defined in Makemain.inc and is specific to the package. |
---|
56 | # For the short term, adopt the notion that we install only the package |
---|
57 | # doxydoc. |
---|
58 | |
---|
59 | install-doxydoc: doxydoc |
---|
60 | if test -r doxydoc/doxygen.conf ; then \ |
---|
61 | $(mkdir_p) $(DocInstallDir) ; \ |
---|
62 | cp -R doxydoc $(DocInstallDir) ; \ |
---|
63 | fi |
---|
64 | |
---|
65 | uninstall-doxydoc: |
---|
66 | rm -rf $(DocInstallDir)/doxydoc |
---|
67 | |
---|
68 | clean-local: clean-doxydoc |
---|
69 | # install-data-local: install-doxydoc |
---|
70 | uninstall-local: uninstall-doxydoc |
---|
71 | |
---|
72 | .PHONY: test unitTest tests unitTests doxydoc |
---|
73 | |
---|
74 | ######################################################################## |
---|
75 | # Maintainer Stuff # |
---|
76 | ######################################################################## |
---|
77 | |
---|
78 | # Files that are generated and should be cleaned with make distclean |
---|
79 | DISTCLEANFILES = coin_subdirs.txt |
---|
80 | |
---|
81 | include BuildTools/Makemain.inc |
---|