Skip to content

Commit

Permalink
Added a script install_proj.sh that can be used to run make install
Browse files Browse the repository at this point in the history
  • Loading branch information
mitza-oci committed Dec 8, 2023
1 parent 9565295 commit 4df4192
Show file tree
Hide file tree
Showing 3 changed files with 34 additions and 3 deletions.
9 changes: 6 additions & 3 deletions ACE/ACE-INSTALL.html
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ <h2>Synopsis</h2>
<li><a href="#eclipse">Working with ACE in Eclipse</a></li>
<li><a href="#advanced">Advanced Topics</a></li>
<li><a href="#power">Building from git</a></li>
</li></ul>
</ul>


<p></p><hr><p>
Expand Down Expand Up @@ -329,7 +329,7 @@ <h3><a name="unix_traditional">Using the Traditional ACE/GNU Configuration</a></
source tree. The ACE recursive Makefile scheme needs this information.
There are several ways to set the ACE_ROOT variable. For example:
<blockquote>
TSCH/CSH:
TCSH/CSH:
<code>setenv ACE_ROOT /home/cs/faculty/schmidt/ACE_wrappers</code>
</blockquote>
<blockquote>
Expand Down Expand Up @@ -427,6 +427,9 @@ <h3><a name="unix_traditional">Using the Traditional ACE/GNU Configuration</a></
</li>
<li>If you've set the INSTALL_PREFIX before building, now run
<blockquote><code>% make install</code></blockquote>
<p>An alternative to directly running <code>make install</make> is to use <code>$ACE_ROOT/bin/install_proj.sh</code>
which will only install projects that are built (instead of trying to build each one during <code>make install</code>).
</p>
</li>
<li>If you need to regenerate the <code>ace/Svc_Conf_y.cpp</code> file,
you'll need to
Expand Down Expand Up @@ -2469,7 +2472,7 @@ <h2><a name="g++">Compiling ACE with GNU g++</a></h2>
If you use the GNU GCC g++ compiler please note the following:

<ul>
</p></li><li>ACE/TAO needs g++ 4.8 or better. Older versions are not usable anymore<p>
</p><li>ACE/TAO needs g++ 4.8 or better. Older versions are not usable anymore<p>

</p></li><li>Make sure to update your gcc <code>config.status</code>
file. This file is produced when installing gcc; it specifies
Expand Down
15 changes: 15 additions & 0 deletions ACE/bin/install_proj.mk
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
include $(PROJECT_MAKEFILE)

POTENTIAL_FILES = $(BIN_UNCHECKED) $(SHLIB_UNCHECKED) $(LIB_UNCHECKED)
ACTUAL_FILES := $(wildcard $(POTENTIAL_FILES))

.PHONY: checked-install
ifeq ($(ACTUAL_FILES),)
checked-install:
@echo Skipping $(PROJECT_MAKEFILE:GNUmakefile.%=%), not built
else
.PHONY: checked-install-message
checked-install-message:
@echo Installing $(ACTUAL_FILES)
checked-install: checked-install-message install
endif
13 changes: 13 additions & 0 deletions ACE/bin/install_proj.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/bin/sh

# ACE's "make install" for an MPC-generated workspace will build all targets that aren't yet built
# This script looks for projects that have been built and installs just those projects
this_dir=$(realpath $(dirname $0))
for makefile in $(find . -type f -name 'GNUmakefile.*'); do
if grep -q 'GNU Makefile' $makefile; then
echo Checking $makefile
cd $(dirname $makefile)
make -f $this_dir/install_proj.mk PROJECT_MAKEFILE=$(basename $makefile) checked-install "$@"
cd - >/dev/null
fi
done

0 comments on commit 4df4192

Please sign in to comment.