source: trunk/makefile.am @ 1361

Last change on this file since 1361 was 1361, checked in by bradbell, 11 years ago

trunk: Simplify top level makefile.

makefile.am: simplify using pattern matching and mkdir -p option.
makefile.in: automatic changes generated by automake.

File size: 3.5 KB
Line 
1# -----------------------------------------------------------------------------
2# CppAD: C++ Algorithmic Differentiation: Copyright (C) 2003-08 Bradley M. Bell
3#
4# CppAD is distributed under multiple licenses. This distribution is under
5# the terms of the
6#                     Common Public License Version 1.0.
7#
8# A copy of this license is included in the COPYING file of this distribution.
9# Please visit http://www.coin-or.org/CppAD/ for information on other licenses.
10# -----------------------------------------------------------------------------
11#
12# automake input file
13#
14# Note that config.h is needed by VC++; i.e., for users that do not run
15# the configure script but rather use the project files
16#
17if CppAD_POSTFIX
18postfix_dir  = $(POSTFIX_DIR)
19else
20postfix_dir  = .
21endif
22myincludedir = $(includedir)/$(postfix_dir)
23nobase_myinclude_HEADERS =  \
24        cppad/*.h \
25        cppad/*.hpp \
26        cppad/local/*.hpp \
27        cppad/speed/*.hpp
28#
29# Did user specify --with-Introduction
30if CppAD_INTRODUCTION
31INTRODUCTION = \
32        introduction/get_started \
33        introduction/exp_apx
34else
35INTRODUCTION =
36endif
37#
38# Did user specify --with-Example
39if CppAD_EXAMPLE
40EXAMPLE = example
41else
42EXAMPLE =
43endif
44#
45# Did user specify --with-TestMore
46if CppAD_TEST_MORE
47TEST_MORE = test_more
48else
49TEST_MORE =
50endif
51#
52if CppAD_SPEED
53# user specified --with-Speed -------------------------------------
54SPEED_CPPAD = speed/cppad speed/double speed/example speed/profile
55#
56if CppAD_ADOLC
57# Did user specify a value for ADOLC_DIR in configure command line
58SPEED_ADOLC    = speed/adolc
59endif
60#
61# Did user specify a value for FADBAD_DIR in configure command line
62if CppAD_FADBAD
63SPEED_FADBAD = speed/fadbad
64endif
65#
66# Did user specify a value for SACADO_DIR in configure command line
67if CppAD_SACADO
68SPEED_SACADO = speed/sacado
69endif
70# ----------------------------------------------------------------------
71# user did not specify --with-Speed
72else
73SPEED_CPPAD  =
74SPEED_ADOLC  =
75SPEED_FADBAD =
76SPEED_SACADO =
77endif
78# ----------------------------------------------------------------------
79# Did user specify --with-PrintFor
80if CppAD_PRINTFOR
81PRINTFOR = print_for
82else
83PRINTFOR =
84endif
85#
86# ---------------------------------------------------------------
87# Did user specify a value for IPOPT_DIR in configure command line
88#
89# ---------------------------------------------------------------
90# Did user specify a value for IPOPT_DIR in configure command line
91if CppAD_IPOPT_CPPAD
92IPOPT_CPPAD = ipopt_cppad
93else
94IPOPT_CPPAD =
95endif
96#
97SUBDIRS = \
98        $(IPOPT_CPPAD) \
99        $(EXAMPLE) \
100        $(INTRODUCTION) \
101        $(PRINTFOR) \
102        $(SPEED_CPPAD) \
103        $(SPEED_ADOLC) \
104        $(SPEED_FADBAD) \
105        $(SPEED_SACADO) \
106        $(TEST_MORE)
107#
108EXTRA_DIST = \
109        build.sh \
110        check_example.sh \
111        check_include_file.sh \
112        check_include_omh.sh \
113        check_include_def.sh \
114        clean_cppad.sh \
115        cpl1.0.txt \
116        dev.omh \
117        doc \
118        doc.omh \
119        doc.omh.in \
120        fix_aclocal.sh \
121        fix_makefile.sh \
122        omh \
123        openmp/example_a11c.cpp \
124        openmp/multi_newton.cpp \
125        openmp/multi_newton.hpp \
126        openmp/sum_i_inv.cpp \
127        openmp/run.sh \
128        run_omhelp.sh \
129        uw_copy_040507.html
130#
131dist-hook:
132        rm -rf `find $(distdir)/omh $(distdir)/openmp -name .svn`
133        rm $(distdir)/doc/error.wrd
134#
135if CppAD_DOCUMENTATION
136doc_postfix = $(DESTDIR)$(datadir)/doc/$(postfix_dir)
137doc_package = $(DESTDIR)$(datadir)/doc/$(postfix_dir)/$(PACKAGE)-$(VERSION)
138install-data-hook:
139        if [ ! -e $(doc_postfix) ] ; then mkdir -p $(doc_postfix) ; fi
140        if [ -e $(doc_package) ] ; then rm -rf $(doc_package) ; fi
141        cp -a $(top_builddir)/doc $(doc_package)
142        chmod -R a-w $(doc_package)
143        chmod -R u+w $(doc_package)
144        chmod -R a+r $(doc_package)
145endif
146#
Note: See TracBrowser for help on using the repository browser.