summaryrefslogtreecommitdiff
path: root/TAO/Makefile.am
blob: f0c130391ff1e943730373bd5dd61f5749126a32 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
##---------------------------------------------------------------------------
##       $Id$
##
##       Top-level Makefile for TAO
##
##---------------------------------------------------------------------------

##
##  Process this file with automake to create Makefile.in
##

## The number in AUTOMAKE_OPTIONS is the minimum required version automake
## needed to process this file.
AUTOMAKE_OPTIONS = 1.4 check-news

bin_SCRIPTS = tao-config

man_MANS = tao-config.1

SUBDIRS = tao \
          TAO_IDL
##SUBDIRS = tao \
##          TAO_IDL \
##          orbsvcs \
##          examples \
##          performance-tests \
##          tests \
##          utils

## For some reason, automake doesn't include acconfig.h in the distribution
EXTRA_DIST = BUG-REPORT-FORM VERSION \
             COPYING.sun LICENSE.sun README.sun README.taoconf \
             tao-config.in taoConf.sh.in tao-config.1.in

##EXTRA_DIST = TAO-INSTALL.html \
##             ChangeLog-98b \
##             ChangeLog-98a \
##             ChangeLog-97 \
##             FAQ \
##             VERSION \
##             etc \
##             includes \
##             os-patches \
##             WindozeCE

DISTCLEANFILES = tao-config taoConf.sh tao-config.1

## release:
##         $(MAKE) dist distdir=$(PACKAGE)$(VERSION)
release:
	$(MAKE) dist

## Put `exec' in the name because this should be installed by
## `install-exec', not `install-data'.
confexecdir=$(libdir)
confexec_DATA = taoConf.sh

## We create taoConf.sh here and not from configure because we want
## to get the paths expanded correctly.  Macros like srcdir are given
## the value NONE in configure if the user doesn't specify them (this
## is an autoconf feature, not a bug).
taoConf.sh: taoConf.sh.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's,\@TAO_LIBDIR\@,$(TAO_LIBDIR),g' \
            -e 's,\@TAO_INCLUDEDIR\@,$(TAO_INCLUDEDIR),g' \
            -e 's,\@TAO_LIBS\@,$(TAO_LIBS),g' \
            -e 's,\@TAO_CXXFLAGS\@,$(TAO_CXXFLAGS),g' \
              < $(srcdir)/taoConf.sh.in > taoConf.tmp \
          && mv taoConf.tmp taoConf.sh

tao-config.1: tao-config.1.in Makefile
## Use sed and then mv to avoid problems if the user interrupts.
	sed -e 's,\@libdir\@,$(libdir),g' \
              < $(srcdir)/tao-config.1.in > tao-config.1.tmp \
          && mv tao-config.1.tmp tao-config.1

dist-hook:
	tar cf - ./docs | (cd $(distdir); tar xfBp -)
	list=`find $(distdir) -type d -name CVS -print`; for p in $$list; do \
          rm -rf $$p; \
        done